home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / a2.0bemacs-src.lha / Emacs-19.25 / lisp / sh-script.elc < prev    next >
Emacs Compiled Lisp  |  1994-05-07  |  22.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 53 61 74 20 | 4d 61 79 20 20 37 20 30 | on Sat |May 7 0|
|00000040| 31 3a 33 34 3a 31 37 20 | 31 39 39 34 0a 3b 3b 3b |1:34:17 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 68 6f 6d 65 | from fi|le /home|
|00000060| 2f 66 73 66 2f 72 6d 73 | 2f 65 31 39 2f 6c 69 73 |/fsf/rms|/e19/lis|
|00000070| 70 2f 73 68 2d 73 63 72 | 69 70 74 2e 65 6c 0a 3b |p/sh-scr|ipt.el.;|
|00000080| 3b 3b 20 65 6d 61 63 73 | 20 76 65 72 73 69 6f 6e |;; emacs| version|
|00000090| 20 31 39 2e 32 32 2e 39 | 31 2e 35 2e 0a 3b 3b 3b | 19.22.9|1.5..;;;|
|000000a0| 20 62 79 74 65 63 6f 6d | 70 20 76 65 72 73 69 6f | bytecom|p versio|
|000000b0| 6e 20 46 53 46 20 32 2e | 31 30 0a 3b 3b 3b 20 6f |n FSF 2.|10.;;; o|
|000000c0| 70 74 69 6d 69 7a 61 74 | 69 6f 6e 20 69 73 20 6f |ptimizat|ion is o|
|000000d0| 6e 2e 0a 3b 3b 3b 20 74 | 68 69 73 20 66 69 6c 65 |n..;;; t|his file|
|000000e0| 20 75 73 65 73 20 6f 70 | 63 6f 64 65 73 20 77 68 | uses op|codes wh|
|000000f0| 69 63 68 20 64 6f 20 6e | 6f 74 20 65 78 69 73 74 |ich do n|ot exist|
|00000100| 20 69 6e 20 45 6d 61 63 | 73 20 31 38 2e 0a 0a 28 | in Emac|s 18...(|
|00000110| 69 66 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |if (and |(boundp |
|00000120| 27 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 29 0a |'emacs-v|ersion).|
|00000130| 09 20 28 6f 72 20 28 61 | 6e 64 20 28 62 6f 75 6e |. (or (a|nd (boun|
|00000140| 64 70 20 27 65 70 6f 63 | 68 3a 3a 76 65 72 73 69 |dp 'epoc|h::versi|
|00000150| 6f 6e 29 20 65 70 6f 63 | 68 3a 3a 76 65 72 73 69 |on) epoc|h::versi|
|00000160| 6f 6e 29 0a 09 20 20 20 | 20 20 28 73 74 72 69 6e |on).. | (strin|
|00000170| 67 2d 6c 65 73 73 70 20 | 65 6d 61 63 73 2d 76 65 |g-lessp |emacs-ve|
|00000180| 72 73 69 6f 6e 20 22 31 | 39 22 29 29 29 0a 20 20 |rsion "1|9"))). |
|00000190| 20 20 28 65 72 72 6f 72 | 20 22 60 2f 68 6f 6d 65 | (error| "`/home|
|000001a0| 2f 66 73 66 2f 72 6d 73 | 2f 65 31 39 2f 6c 69 73 |/fsf/rms|/e19/lis|
|000001b0| 70 2f 73 68 2d 73 63 72 | 69 70 74 2e 65 6c 27 20 |p/sh-scr|ipt.el' |
|000001c0| 77 61 73 20 63 6f 6d 70 | 69 6c 65 64 20 66 6f 72 |was comp|iled for|
|000001d0| 20 45 6d 61 63 73 20 31 | 39 22 29 29 0a 0a 28 62 | Emacs 1|9"))..(b|
|000001e0| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 5c 6e 42 42 |yte-code| "..\nBB|
|000001f0| 12 c3 87 22 20 5b 28 22 | 2f 62 69 6e 2f 22 20 2e |..." [("|/bin/" .|
|00000200| 20 73 68 2d 6f 72 2d 6f | 74 68 65 72 2d 6d 6f 64 | sh-or-o|ther-mod|
|00000210| 65 29 20 28 22 5c 5c 2e | 73 68 24 5c 5c 7c 5c 5c |e) ("\\.|sh$\\|\\|
|00000220| 2e 73 68 61 72 24 5c 5c | 7c 2f 5c 5c 2e 5c 5c 28 |.shar$\\||/\\.\\(|
|00000230| 70 72 6f 66 69 6c 65 5c | 5c 7c 62 61 73 68 5f 70 |profile\|\|bash_p|
|00000240| 72 6f 66 69 6c 65 5c 5c | 7c 6c 6f 67 69 6e 5c 5c |rofile\\||login\\|
|00000250| 7c 62 61 73 68 5f 6c 6f | 67 69 6e 5c 5c 7c 6c 6f ||bash_lo|gin\\|lo|
|00000260| 67 6f 75 74 5c 5c 7c 62 | 61 73 68 5f 6c 6f 67 6f |gout\\|b|ash_logo|
|00000270| 75 74 5c 5c 7c 62 61 73 | 68 72 63 5c 5c 7c 74 3f |ut\\|bas|hrc\\|t?|
|00000280| 63 73 68 72 63 5c 5c 7c | 78 69 6e 69 74 72 63 5c |cshrc\\||xinitrc\|
|00000290| 5c 7c 73 74 61 72 74 78 | 72 63 5c 5c 7c 78 73 65 |\|startx|rc\\|xse|
|000002a0| 73 73 69 6f 6e 5c 5c 29 | 24 22 20 2e 20 73 68 2d |ssion\\)|$" . sh-|
|000002b0| 6d 6f 64 65 29 20 61 75 | 74 6f 2d 6d 6f 64 65 2d |mode) au|to-mode-|
|000002c0| 61 6c 69 73 74 20 6e 69 | 6c 5d 20 33 29 0a 28 64 |alist ni|l] 3).(d|
|000002d0| 65 66 76 61 72 20 73 68 | 2d 6d 6f 64 65 2d 73 79 |efvar sh|-mode-sy|
|000002e0| 6e 74 61 78 2d 74 61 62 | 6c 65 20 28 62 79 74 65 |ntax-tab|le (byte|
|000002f0| 2d 63 6f 64 65 20 22 c0 | 20 19 c2 c3 c4 09 23 88 |-code ".| .....#.|
|00000300| c2 c5 c6 09 23 88 c2 c7 | c6 09 23 88 c2 c8 c9 09 |....#...|..#.....|
|00000310| 23 88 c2 ca cb 09 23 88 | c2 cc cd 09 23 88 c2 ce |#.....#.|....#...|
|00000320| cf 09 23 88 c2 d0 cf 09 | 23 88 c2 d1 cf 09 23 88 |..#.....|#.....#.|
|00000330| c2 d2 cf 09 23 88 c2 d3 | cf 09 23 88 c2 d4 cf 09 |....#...|..#.....|
|00000340| 23 88 c2 d5 cf 09 23 88 | 09 29 87 22 20 5b 63 6f |#.....#.|.)." [co|
|00000350| 70 79 2d 73 79 6e 74 61 | 78 2d 74 61 62 6c 65 20 |py-synta|x-table |
|00000360| 74 61 62 6c 65 20 6d 6f | 64 69 66 79 2d 73 79 6e |table mo|dify-syn|
|00000370| 74 61 78 2d 65 6e 74 72 | 79 20 33 35 20 22 3c 22 |tax-entr|y 35 "<"|
|00000380| 20 31 32 20 22 3e 23 22 | 20 31 30 20 33 34 20 22 | 12 ">#"| 10 34 "|
|00000390| 5c 22 5c 22 22 20 33 39 | 20 22 5c 22 27 22 20 39 |\"\"" 39| "\"'" 9|
|000003a0| 36 20 22 24 60 22 20 33 | 36 20 22 5f 22 20 33 33 |6 "$`" 3|6 "_" 33|
|000003b0| 20 33 37 20 35 38 20 34 | 36 20 39 34 20 31 32 36 | 37 58 4|6 94 126|
|000003c0| 5d 20 34 29 20 22 5c 0a | 53 79 6e 74 61 78 20 74 |] 4) "\.|Syntax t|
|000003d0| 61 62 6c 65 20 69 6e 20 | 75 73 65 20 69 6e 20 53 |able in |use in S|
|000003e0| 68 65 6c 6c 2d 53 63 72 | 69 70 74 20 6d 6f 64 65 |hell-Scr|ipt mode|
|000003f0| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 73 68 2d 75 |.").(def|var sh-u|
|00000400| 73 65 2d 70 72 65 66 69 | 78 20 6e 69 6c 20 22 5c |se-prefi|x nil "\|
|00000410| 0a 49 66 20 6e 6f 6e 2d | 6e 69 6c 20 77 68 65 6e |.If non-|nil when|
|00000420| 20 6c 6f 61 64 69 6e 67 | 2c 20 60 24 27 20 61 6e | loading|, `$' an|
|00000430| 64 20 60 3c 27 20 77 69 | 6c 6c 20 62 65 20 20 43 |d `<' wi|ll be C|
|00000440| 2d 63 20 24 20 20 61 6e | 64 20 20 43 2d 63 20 3c |-c $ an|d C-c <|
|00000450| 20 2e 22 29 0a 28 64 65 | 66 76 61 72 20 73 68 2d | .").(de|fvar sh-|
|00000460| 6d 6f 64 65 2d 6d 61 70 | 20 28 62 79 74 65 2d 63 |mode-map| (byte-c|
|00000470| 6f 64 65 20 22 c0 20 19 | c2 09 c3 c4 23 88 c2 09 |ode ". .|....#...|
|00000480| c5 c6 23 88 c2 09 c7 c8 | 23 88 c2 09 c9 ca 23 88 |..#.....|#.....#.|
|00000490| c2 09 cb cc 23 88 c2 09 | cd ce 23 88 c2 09 cf d0 |....#...|..#.....|
|000004a0| 23 88 c2 09 d1 d2 23 88 | c2 09 0e 13 83 3e 00 d4 |#.....#.|.....>..|
|000004b0| 82 3f 00 d5 d6 23 88 c2 | 09 d7 d8 23 88 c2 09 d9 |.?...#..|...#....|
|000004c0| da 23 88 c2 09 0e 13 83 | 59 00 db 82 5a 00 dc dd |.#......|Y...Z...|
|000004d0| 23 88 c2 09 de df 23 88 | c2 09 e0 df 23 88 c2 09 |#.....#.|....#...|
|000004e0| e1 df 23 88 c2 09 e2 df | 23 88 c2 09 e3 df 23 88 |..#.....|#.....#.|
|000004f0| c2 09 e4 df 23 88 c2 09 | e5 e6 23 88 e7 e8 e9 09 |....#...|..#.....|
|00000500| ea 20 24 88 e7 eb ec 09 | ea 20 24 88 e7 ed ee 09 |. $.....|. $.....|
|00000510| ea 20 24 88 c2 09 ef f0 | 23 88 e7 f1 f2 09 ea 20 |. $.....|#...... |
|00000520| 24 88 e7 f3 f4 09 ea 20 | 24 88 e7 f5 f6 09 ea 20 |$...... |$...... |
|00000530| 24 88 e7 f7 f8 09 ea 20 | 24 88 c2 09 f9 fa c0 fa |$...... |$.......|
|00000540| 21 42 23 88 c2 09 fb fc | 23 88 c2 09 fd fe 23 88 |!B#.....|#.....#.|
|00000550| c2 09 ff 81 40 00 23 88 | c2 09 81 41 00 81 42 00 |....@.#.|...A..B.|
|00000560| 23 88 c2 09 81 43 00 81 | 44 00 23 88 c2 09 81 45 |#....C..|D.#....E|
|00000570| 00 81 46 00 23 88 c2 09 | 81 47 00 81 48 00 23 88 |..F.#...|.G..H.#.|
|00000580| 09 29 87 22 20 5b 6d 61 | 6b 65 2d 73 70 61 72 73 |.)." [ma|ke-spars|
|00000590| 65 2d 6b 65 79 6d 61 70 | 20 6d 61 70 20 64 65 66 |e-keymap| map def|
|000005a0| 69 6e 65 2d 6b 65 79 20 | 22 03 28 22 20 73 68 2d |ine-key |".(" sh-|
|000005b0| 66 75 6e 63 74 69 6f 6e | 20 22 03 17 22 20 73 68 |function| ".." sh|
|000005c0| 2d 77 68 69 6c 65 20 22 | 03 15 22 20 73 68 2d 75 |-while "|.." sh-u|
|000005d0| 6e 74 69 6c 20 22 03 13 | 22 20 73 68 2d 73 65 6c |ntil "..|" sh-sel|
|000005e0| 65 63 74 20 22 03 5c 66 | 22 20 73 68 2d 69 6e 64 |ect ".\f|" sh-ind|
|000005f0| 65 78 65 64 2d 6c 6f 6f | 70 20 22 03 09 22 20 73 |exed-loo|p ".." s|
|00000600| 68 2d 69 66 20 22 03 06 | 22 20 73 68 2d 66 6f 72 |h-if "..|" sh-for|
|00000610| 20 22 03 03 22 20 73 68 | 2d 63 61 73 65 20 73 68 | ".." sh|-case sh|
|00000620| 2d 75 73 65 2d 70 72 65 | 66 69 78 20 22 03 24 22 |-use-pre|fix ".$"|
|00000630| 20 22 24 22 20 73 68 2d | 71 75 65 72 79 2d 66 6f | "$" sh-|query-fo|
|00000640| 72 2d 76 61 72 69 61 62 | 6c 65 20 22 3d 22 20 73 |r-variab|le "=" s|
|00000650| 68 2d 61 73 73 69 67 6e | 6d 65 6e 74 20 22 03 2b |h-assign|ment ".+|
|00000660| 22 20 73 68 2d 61 64 64 | 20 22 03 3c 22 20 22 3c |" sh-add| ".<" "<|
|00000670| 22 20 73 68 2d 6d 61 79 | 62 65 2d 68 65 72 65 2d |" sh-may|be-here-|
|00000680| 64 6f 63 75 6d 65 6e 74 | 20 22 28 22 20 70 61 69 |document| "(" pai|
|00000690| 72 2d 69 6e 73 65 72 74 | 2d 6d 61 79 62 65 20 22 |r-insert|-maybe "|
|000006a0| 7b 22 20 22 5b 22 20 22 | 27 22 20 22 60 22 20 22 |{" "[" "|'" "`" "|
|000006b0| 5c 22 22 20 22 09 22 20 | 73 68 2d 69 6e 64 65 6e |\"" "." |sh-inden|
|000006c0| 74 2d 6c 69 6e 65 20 73 | 75 62 73 74 69 74 75 74 |t-line s|ubstitut|
|000006d0| 65 2d 6b 65 79 2d 64 65 | 66 69 6e 69 74 69 6f 6e |e-key-de|finition|
|000006e0| 20 63 6f 6d 70 6c 65 74 | 65 2d 74 61 67 20 63 6f | complet|e-tag co|
|000006f0| 6d 69 6e 74 2d 64 79 6e | 61 6d 69 63 2d 63 6f 6d |mint-dyn|amic-com|
|00000700| 70 6c 65 74 65 2d 66 69 | 6c 65 6e 61 6d 65 20 63 |plete-fi|lename c|
|00000710| 75 72 72 65 6e 74 2d 67 | 6c 6f 62 61 6c 2d 6d 61 |urrent-g|lobal-ma|
|00000720| 70 20 6e 65 77 6c 69 6e | 65 2d 61 6e 64 2d 69 6e |p newlin|e-and-in|
|00000730| 64 65 6e 74 20 73 68 2d | 6e 65 77 6c 69 6e 65 2d |dent sh-|newline-|
|00000740| 61 6e 64 2d 69 6e 64 65 | 6e 74 20 64 65 6c 65 74 |and-inde|nt delet|
|00000750| 65 2d 62 61 63 6b 77 61 | 72 64 2d 63 68 61 72 20 |e-backwa|rd-char |
|00000760| 62 61 63 6b 77 61 72 64 | 2d 64 65 6c 65 74 65 2d |backward|-delete-|
|00000770| 63 68 61 72 2d 75 6e 74 | 61 62 69 66 79 20 22 03 |char-unt|abify ".|
|00000780| 3a 22 20 73 68 2d 73 65 | 74 2d 73 68 65 6c 6c 20 |:" sh-se|t-shell |
|00000790| 62 65 67 69 6e 6e 69 6e | 67 2d 6f 66 2d 64 65 66 |beginnin|g-of-def|
|000007a0| 75 6e 20 73 68 2d 62 65 | 67 69 6e 6e 69 6e 67 2d |un sh-be|ginning-|
|000007b0| 6f 66 2d 63 6f 6d 70 6f | 75 6e 64 2d 63 6f 6d 6d |of-compo|und-comm|
|000007c0| 61 6e 64 20 62 61 63 6b | 77 61 72 64 2d 73 65 6e |and back|ward-sen|
|000007d0| 74 65 6e 63 65 20 73 68 | 2d 62 65 67 69 6e 6e 69 |tence sh|-beginni|
|000007e0| 6e 67 2d 6f 66 2d 63 6f | 6d 6d 61 6e 64 20 66 6f |ng-of-co|mmand fo|
|000007f0| 72 77 61 72 64 2d 73 65 | 6e 74 65 6e 63 65 20 73 |rward-se|ntence s|
|00000800| 68 2d 65 6e 64 2d 6f 66 | 2d 63 6f 6d 6d 61 6e 64 |h-end-of|-command|
|00000810| 20 6d 61 6e 75 61 6c 2d | 65 6e 74 72 79 20 73 68 | manual-|entry sh|
|00000820| 2d 6d 61 6e 75 61 6c 2d | 65 6e 74 72 79 20 5b 6d |-manual-|entry [m|
|00000830| 65 6e 75 2d 62 61 72 20 | 69 6e 73 65 72 74 5d 20 |enu-bar |insert] |
|00000840| 22 49 6e 73 65 72 74 22 | 20 5b 6d 65 6e 75 2d 62 |"Insert"| [menu-b|
|00000850| 61 72 20 69 6e 73 65 72 | 74 20 73 68 2d 77 68 69 |ar inser|t sh-whi|
|00000860| 6c 65 5d 20 28 22 57 68 | 69 6c 65 20 6c 6f 6f 70 |le] ("Wh|ile loop|
|00000870| 22 20 2e 20 73 68 2d 77 | 68 69 6c 65 29 20 5b 6d |" . sh-w|hile) [m|
|00000880| 65 6e 75 2d 62 61 72 20 | 69 6e 73 65 72 74 20 73 |enu-bar |insert s|
|00000890| 68 2d 75 6e 74 69 6c 5d | 20 28 22 55 6e 74 69 6c |h-until]| ("Until|
|000008a0| 20 6c 6f 6f 70 22 20 2e | 20 73 68 2d 75 6e 74 69 | loop" .| sh-unti|
|000008b0| 6c 29 20 5b 6d 65 6e 75 | 2d 62 61 72 20 69 6e 73 |l) [menu|-bar ins|
|000008c0| 65 72 74 20 73 68 2d 73 | 65 6c 65 63 74 5d 20 28 |ert sh-s|elect] (|
|000008d0| 22 53 65 6c 65 63 74 20 | 73 74 61 74 65 6d 65 6e |"Select |statemen|
|000008e0| 74 22 20 2e 20 73 68 2d | 73 65 6c 65 63 74 29 20 |t" . sh-|select) |
|000008f0| 5b 6d 65 6e 75 2d 62 61 | 72 20 69 6e 73 65 72 74 |[menu-ba|r insert|
|00000900| 20 73 68 2d 69 6e 64 65 | 78 65 64 2d 6c 6f 6f 70 | sh-inde|xed-loop|
|00000910| 5d 20 28 22 49 6e 64 65 | 78 65 64 20 6c 6f 6f 70 |] ("Inde|xed loop|
|00000920| 22 20 2e 20 73 68 2d 69 | 6e 64 65 78 65 64 2d 6c |" . sh-i|ndexed-l|
|00000930| 6f 6f 70 29 20 5b 6d 65 | 6e 75 2d 62 61 72 20 69 |oop) [me|nu-bar i|
|00000940| 6e 73 65 72 74 20 73 68 | 2d 69 66 5d 20 28 22 49 |nsert sh|-if] ("I|
|00000950| 66 20 73 74 61 74 65 6d | 65 6e 74 22 20 2e 20 73 |f statem|ent" . s|
|00000960| 68 2d 69 66 29 20 5b 6d | 65 6e 75 2d 62 61 72 20 |h-if) [m|enu-bar |
|00000970| 69 6e 73 65 72 74 20 73 | 68 2d 66 6f 72 5d 20 28 |insert s|h-for] (|
|00000980| 22 46 6f 72 20 6c 6f 6f | 70 22 20 2e 20 73 68 2d |"For loo|p" . sh-|
|00000990| 66 6f 72 29 20 5b 6d 65 | 6e 75 2d 62 61 72 20 69 |for) [me|nu-bar i|
|000009a0| 6e 73 65 72 74 20 73 68 | 2d 63 61 73 65 5d 20 28 |nsert sh|-case] (|
|000009b0| 22 43 61 73 65 20 73 74 | 61 74 65 6d 65 6e 74 22 |"Case st|atement"|
|000009c0| 20 2e 20 73 68 2d 63 61 | 73 65 29 5d 20 36 29 20 | . sh-ca|se)] 6) |
|000009d0| 22 5c 0a 4b 65 79 6d 61 | 70 20 75 73 65 64 20 69 |"\.Keyma|p used i|
|000009e0| 6e 20 53 68 65 6c 6c 2d | 53 63 72 69 70 74 20 6d |n Shell-|Script m|
|000009f0| 6f 64 65 2e 22 29 0a 28 | 64 65 66 76 61 72 20 73 |ode.").(|defvar s|
|00000a00| 68 2d 66 69 6e 64 2d 66 | 69 6c 65 2d 6d 6f 64 69 |h-find-f|ile-modi|
|00000a10| 66 69 65 73 20 74 20 22 | 5c 0a 2a 57 68 61 74 20 |fies t "|\.*What |
|00000a20| 74 6f 20 64 6f 20 77 68 | 65 6e 20 6e 65 77 6c 79 |to do wh|en newly|
|00000a30| 20 66 6f 75 6e 64 20 66 | 69 6c 65 20 68 61 73 20 | found f|ile has |
|00000a40| 6e 6f 20 6d 61 67 69 63 | 20 6e 75 6d 62 65 72 3a |no magic| number:|
|00000a50| 0a 09 6e 69 6c 09 64 6f | 20 6e 6f 74 68 69 6e 67 |..nil.do| nothing|
|00000a60| 0a 09 74 09 69 6e 73 65 | 72 74 20 6d 61 67 69 63 |..t.inse|rt magic|
|00000a70| 20 6e 75 6d 62 65 72 0a | 09 6f 74 68 65 72 09 69 | number.|.other.i|
|00000a80| 6e 73 65 72 74 20 6d 61 | 67 69 63 20 6e 75 6d 62 |nsert ma|gic numb|
|00000a90| 65 72 2c 20 62 75 74 20 | 6d 61 72 6b 20 61 73 20 |er, but |mark as |
|00000aa0| 75 6e 6d 6f 64 69 66 69 | 65 64 2e 22 29 0a 28 64 |unmodifi|ed.").(d|
|00000ab0| 65 66 76 61 72 20 73 68 | 2d 71 75 65 72 79 2d 66 |efvar sh|-query-f|
|00000ac0| 6f 72 2d 6d 61 67 69 63 | 20 74 20 22 5c 0a 2a 49 |or-magic| t "\.*I|
|00000ad0| 66 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 61 73 6b 20 75 |f non-ni|l, ask u|
|00000ae0| 73 65 72 20 62 65 66 6f | 72 65 20 63 68 61 6e 67 |ser befo|re chang|
|00000af0| 69 6e 67 20 6f 72 20 69 | 6e 73 65 72 74 69 6e 67 |ing or i|nserting|
|00000b00| 20 6d 61 67 69 63 20 6e | 75 6d 62 65 72 2e 22 29 | magic n|umber.")|
|00000b10| 0a 28 64 65 66 76 61 72 | 20 73 68 2d 6d 61 67 69 |.(defvar| sh-magi|
|00000b20| 63 6c 65 73 73 2d 66 69 | 6c 65 2d 72 65 67 65 78 |cless-fi|le-regex|
|00000b30| 70 20 22 2f 5c 5c 2e 5b | 5e 2f 5d 2b 24 22 20 22 |p "/\\.[|^/]+$" "|
|00000b40| 5c 0a 2a 4f 6e 20 66 69 | 6c 65 73 20 77 69 74 68 |\.*On fi|les with|
|00000b50| 20 74 68 69 73 20 6b 69 | 6e 64 20 6f 66 20 6e 61 | this ki|nd of na|
|00000b60| 6d 65 20 6e 6f 20 6d 61 | 67 69 63 20 69 73 20 69 |me no ma|gic is i|
|00000b70| 6e 73 65 72 74 65 64 20 | 6f 72 20 63 68 61 6e 67 |nserted |or chang|
|00000b80| 65 64 2e 22 29 0a 28 64 | 65 66 76 61 72 20 6d 61 |ed.").(d|efvar ma|
|00000b90| 67 69 63 2d 6e 75 6d 62 | 65 72 2d 61 6c 69 73 74 |gic-numb|er-alist|
|00000ba0| 20 28 71 75 6f 74 65 20 | 28 28 22 4c 01 08 5c 5c | (quote |(("L..\\|
|00000bb0| 7c 7f 45 4c 46 22 20 2e | 20 68 65 78 6c 2d 6d 6f ||.ELF" .| hexl-mo|
|00000bc0| 64 65 29 20 28 22 23 21 | 2e 2a 70 65 72 6c 22 20 |de) ("#!|.*perl" |
|00000bd0| 2e 20 70 65 72 6c 2d 6d | 6f 64 65 29 29 29 20 22 |. perl-m|ode))) "|
|00000be0| 5c 0a 41 20 72 65 67 65 | 78 70 20 74 6f 20 6d 61 |\.A rege|xp to ma|
|00000bf0| 74 63 68 20 74 68 65 20 | 6d 61 67 69 63 20 6e 75 |tch the |magic nu|
|00000c00| 6d 62 65 72 20 6f 66 20 | 61 20 66 6f 75 6e 64 20 |mber of |a found |
|00000c10| 66 69 6c 65 2e 0a 43 75 | 72 72 65 6e 74 6c 79 20 |file..Cu|rrently |
|00000c20| 74 68 69 73 20 69 73 20 | 6f 6e 6c 79 20 75 73 65 |this is |only use|
|00000c30| 64 20 62 79 20 66 75 6e | 63 74 69 6f 6e 20 60 73 |d by fun|ction `s|
|00000c40| 68 2d 6f 72 2d 6f 74 68 | 65 72 2d 6d 6f 64 65 27 |h-or-oth|er-mode'|
|00000c50| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 73 68 2d 65 |.").(def|var sh-e|
|00000c60| 78 65 63 75 74 61 62 6c | 65 20 22 2e 2a 20 69 73 |xecutabl|e ".* is|
|00000c70| 20 5c 5c 28 5b 5e 20 09 | 5d 2a 5c 5c 29 5c 6e 22 | \\([^ .|]*\\)\n"|
|00000c80| 20 22 5c 0a 2a 52 65 67 | 65 78 70 20 74 6f 20 6d | "\.*Reg|exp to m|
|00000c90| 61 74 63 68 20 74 68 65 | 20 6f 75 74 70 75 74 20 |atch the| output |
|00000ca0| 6f 66 20 73 68 20 62 75 | 69 6c 74 69 6e 20 60 74 |of sh bu|iltin `t|
|00000cb0| 79 70 65 27 20 63 6f 6d | 6d 61 6e 64 20 6f 6e 20 |ype' com|mand on |
|00000cc0| 79 6f 75 72 20 6d 61 63 | 68 69 6e 65 2e 0a 54 68 |your mac|hine..Th|
|00000cd0| 65 20 72 65 67 65 78 70 | 20 6d 75 73 74 20 6d 61 |e regexp| must ma|
|00000ce0| 74 63 68 20 74 68 65 20 | 77 68 6f 6c 65 20 6f 75 |tch the |whole ou|
|00000cf0| 74 70 75 74 2c 20 61 6e | 64 20 6d 75 73 74 20 63 |tput, an|d must c|
|00000d00| 6f 6e 74 61 69 6e 20 61 | 20 5c 5c 28 73 6f 6d 65 |ontain a| \\(some|
|00000d10| 74 68 69 6e 67 5c 5c 29 | 0a 63 6f 6e 73 74 72 75 |thing\\)|.constru|
|00000d20| 63 74 20 77 68 69 63 68 | 20 6d 61 74 63 68 65 73 |ct which| matches|
|00000d30| 20 74 68 65 20 61 63 74 | 75 61 6c 20 65 78 65 63 | the act|ual exec|
|00000d40| 75 74 61 62 6c 65 2e 22 | 29 0a 28 64 65 66 76 61 |utable."|).(defva|
|00000d50| 72 20 73 68 2d 63 68 6d | 6f 64 2d 61 72 67 75 6d |r sh-chm|od-argum|
|00000d60| 65 6e 74 20 22 37 35 35 | 22 20 22 5c 0a 2a 41 66 |ent "755|" "\.*Af|
|00000d70| 74 65 72 20 73 61 76 69 | 6e 67 2c 20 69 66 20 74 |ter savi|ng, if t|
|00000d80| 68 65 20 66 69 6c 65 20 | 69 73 20 6e 6f 74 20 65 |he file |is not e|
|00000d90| 78 65 63 75 74 61 62 6c | 65 2c 20 73 65 74 20 74 |xecutabl|e, set t|
|00000da0| 68 69 73 20 6d 6f 64 65 | 2e 0a 54 68 65 20 6d 6f |his mode|..The mo|
|00000db0| 64 65 20 63 61 6e 20 62 | 65 20 61 62 73 6f 6c 75 |de can b|e absolu|
|00000dc0| 74 65 20 5c 22 35 31 31 | 5c 22 20 6f 72 20 72 65 |te \"511|\" or re|
|00000dd0| 6c 61 74 69 76 65 20 5c | 22 75 2b 78 5c 22 2e 20 |lative \|"u+x\". |
|00000de0| 20 44 6f 20 6e 6f 74 68 | 69 6e 67 20 69 66 20 74 | Do noth|ing if t|
|00000df0| 68 69 73 20 69 73 20 6e | 69 6c 2e 22 29 0a 28 64 |his is n|il.").(d|
|00000e00| 65 66 76 61 72 20 73 68 | 2d 73 68 65 6c 6c 2d 70 |efvar sh|-shell-p|
|00000e10| 61 74 68 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |ath (byt|e-code "|
|00000e20| c0 c1 21 86 07 00 c2 87 | 22 20 5b 67 65 74 65 6e |..!.....|" [geten|
|00000e30| 76 20 22 53 48 45 4c 4c | 22 20 22 2f 62 69 6e 2f |v "SHELL|" "/bin/|
|00000e40| 73 68 22 5d 20 32 29 20 | 22 5c 0a 2a 54 68 65 20 |sh"] 2) |"\.*The |
|00000e50| 65 78 65 63 75 74 61 62 | 6c 65 20 6f 66 20 74 68 |executab|le of th|
|00000e60| 65 20 73 68 65 6c 6c 20 | 62 65 69 6e 67 20 70 72 |e shell |being pr|
|00000e70| 6f 67 72 61 6d 6d 65 64 | 2e 22 29 0a 28 64 65 66 |ogrammed|.").(def|
|00000e80| 76 61 72 20 73 68 2d 73 | 68 65 6c 6c 2d 61 72 67 |var sh-s|hell-arg|
|00000e90| 75 6d 65 6e 74 20 6e 69 | 6c 20 22 5c 0a 2a 41 20 |ument ni|l "\.*A |
|00000ea0| 73 69 6e 67 6c 65 20 61 | 72 67 75 6d 65 6e 74 20 |single a|rgument |
|00000eb0| 66 6f 72 20 74 68 65 20 | 6d 61 67 69 63 20 6e 75 |for the |magic nu|
|00000ec0| 6d 62 65 72 2c 20 6f 72 | 20 6e 69 6c 2e 22 29 0a |mber, or| nil.").|
|00000ed0| 28 64 65 66 76 61 72 20 | 73 68 2d 73 68 65 6c 6c |(defvar |sh-shell|
|00000ee0| 20 6e 69 6c 20 22 5c 0a | 54 68 65 20 73 68 65 6c | nil "\.|The shel|
|00000ef0| 6c 20 62 65 69 6e 67 20 | 70 72 6f 67 72 61 6d 6d |l being |programm|
|00000f00| 65 64 2e 20 20 54 68 69 | 73 20 69 73 20 73 65 74 |ed. Thi|s is set|
|00000f10| 20 62 79 20 5c 5c 5b 73 | 68 2d 73 65 74 2d 73 68 | by \\[s|h-set-sh|
|00000f20| 65 6c 6c 5d 2e 22 29 0a | 28 64 65 66 76 61 72 20 |ell].").|(defvar |
|00000f30| 73 68 2d 73 68 65 6c 6c | 2d 69 73 2d 63 73 68 20 |sh-shell|-is-csh |
|00000f40| 6e 69 6c 20 22 5c 0a 54 | 68 65 20 73 68 65 6c 6c |nil "\.T|he shell|
|00000f50| 20 62 65 69 6e 67 20 70 | 72 6f 67 72 61 6d 6d 65 | being p|rogramme|
|00000f60| 64 2e 20 20 54 68 69 73 | 20 69 73 20 73 65 74 20 |d. This| is set |
|00000f70| 62 79 20 5c 5c 5b 73 68 | 2d 73 65 74 2d 73 68 65 |by \\[sh|-set-she|
|00000f80| 6c 6c 5d 2e 22 29 0a 28 | 64 65 66 76 61 72 20 73 |ll].").(|defvar s|
|00000f90| 68 2d 74 61 62 2d 77 69 | 64 74 68 20 34 20 22 5c |h-tab-wi|dth 4 "\|
|00000fa0| 0a 54 68 65 20 64 65 66 | 61 75 6c 74 20 76 61 6c |.The def|ault val|
|00000fb0| 75 65 20 66 6f 72 20 60 | 74 61 62 2d 77 69 64 74 |ue for `|tab-widt|
|00000fc0| 68 27 20 69 6e 20 53 68 | 65 6c 6c 2d 53 63 72 69 |h' in Sh|ell-Scri|
|00000fd0| 70 74 20 6d 6f 64 65 2e | 0a 54 68 69 73 20 69 73 |pt mode.|.This is|
|00000fe0| 20 74 68 65 20 77 69 64 | 74 68 20 6f 66 20 74 61 | the wid|th of ta|
|00000ff0| 62 20 73 74 6f 70 73 20 | 61 66 74 65 72 20 74 68 |b stops |after th|
|00001000| 65 20 69 6e 64 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |e indent|ation of|
|00001010| 20 74 68 65 20 70 72 65 | 63 65 65 64 69 6e 67 20 | the pre|ceeding |
|00001020| 6c 69 6e 65 2e 22 29 0a | 28 64 65 66 76 61 72 20 |line.").|(defvar |
|00001030| 73 68 2d 72 65 6d 65 6d | 62 65 72 2d 76 61 72 69 |sh-remem|ber-vari|
|00001040| 61 62 6c 65 2d 6d 69 6e | 20 33 20 22 5c 0a 2a 44 |able-min| 3 "\.*D|
|00001050| 6f 6e 27 74 20 72 65 6d | 65 6d 62 65 72 20 76 61 |on't rem|ember va|
|00001060| 72 69 61 62 6c 65 73 20 | 6c 65 73 73 20 74 68 61 |riables |less tha|
|00001070| 6e 20 74 68 69 73 20 6c | 65 6e 67 74 68 20 66 6f |n this l|ength fo|
|00001080| 72 20 63 6f 6d 70 6c 65 | 74 69 6e 67 20 72 65 61 |r comple|ting rea|
|00001090| 64 73 2e 22 29 0a 28 64 | 65 66 76 61 72 20 73 68 |ds.").(d|efvar sh|
|000010a0| 2d 62 65 67 69 6e 6e 69 | 6e 67 2d 6f 66 2d 63 6f |-beginni|ng-of-co|
|000010b0| 6d 6d 61 6e 64 20 22 5c | 5c 28 5b 3b 28 7b 60 7c |mmand "\|\([;({`||
|000010c0| 26 5d 5c 5c 7c 5e 5c 5c | 29 5b 20 09 5d 2a 5c 5c |&]\\|^\\|)[ .]*\\|
|000010d0| 28 5b 2f 7e 3a 61 2d 7a | 41 2d 5a 30 2d 39 5d 5c |([/~:a-z|A-Z0-9]\|
|000010e0| 5c 29 22 20 22 5c 0a 2a | 52 65 67 65 78 70 20 74 |\)" "\.*|Regexp t|
|000010f0| 6f 20 64 65 74 65 72 6d | 69 6e 65 20 74 68 65 20 |o determ|ine the |
|00001100| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 61 20 73 |beginnin|g of a s|
|00001110| 68 65 6c 6c 20 63 6f 6d | 6d 61 6e 64 2e 0a 54 68 |hell com|mand..Th|
|00001120| 65 20 61 63 74 75 61 6c | 20 63 6f 6d 6d 61 6e 64 |e actual| command|
|00001130| 20 73 74 61 72 74 73 20 | 61 74 20 74 68 65 20 62 | starts |at the b|
|00001140| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 74 68 65 20 |eginning| of the |
|00001150| 73 65 63 6f 6e 64 20 5c | 5c 28 67 72 6f 75 70 69 |second \|\(groupi|
|00001160| 6e 67 5c 5c 29 2e 22 29 | 0a 28 64 65 66 76 61 72 |ng\\).")|.(defvar|
|00001170| 20 73 68 2d 65 6e 64 2d | 6f 66 2d 63 6f 6d 6d 61 | sh-end-|of-comma|
|00001180| 6e 64 20 22 5c 5c 28 5b | 2f 7e 3a 61 2d 7a 41 2d |nd "\\([|/~:a-zA-|
|00001190| 5a 30 2d 39 5d 5c 5c 29 | 5b 20 09 5d 2a 5c 5c 28 |Z0-9]\\)|[ .]*\\(|
|000011a0| 5b 3b 23 29 7d 60 7c 26 | 5d 5c 5c 7c 24 5c 5c 29 |[;#)}`|&|]\\|$\\)|
|000011b0| 22 20 22 5c 0a 2a 52 65 | 67 65 78 70 20 74 6f 20 |" "\.*Re|gexp to |
|000011c0| 64 65 74 65 72 6d 69 6e | 65 20 74 68 65 20 65 6e |determin|e the en|
|000011d0| 64 20 6f 66 20 61 20 73 | 68 65 6c 6c 20 63 6f 6d |d of a s|hell com|
|000011e0| 6d 61 6e 64 2e 0a 54 68 | 65 20 61 63 74 75 61 6c |mand..Th|e actual|
|000011f0| 20 63 6f 6d 6d 61 6e 64 | 20 65 6e 64 73 20 61 74 | command| ends at|
|00001200| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 74 68 65 20 | the end| of the |
|00001210| 66 69 72 73 74 20 5c 5c | 28 67 72 6f 75 70 69 6e |first \\|(groupin|
|00001220| 67 5c 5c 29 2e 22 29 0a | 28 64 65 66 76 61 72 20 |g\\).").|(defvar |
|00001230| 73 68 2d 61 73 73 69 67 | 6e 6d 65 6e 74 2d 73 70 |sh-assig|nment-sp|
|00001240| 61 63 65 20 28 71 75 6f | 74 65 20 28 63 73 68 20 |ace (quo|te (csh |
|00001250| 74 63 73 68 29 29 20 22 | 5c 0a 4c 69 73 74 20 6f |tcsh)) "|\.List o|
|00001260| 66 20 73 68 65 6c 6c 73 | 20 74 68 61 74 20 61 6c |f shells| that al|
|00001270| 6c 6f 77 20 73 70 61 63 | 65 73 20 61 72 6f 75 6e |low spac|es aroun|
|00001280| 64 20 74 68 65 20 61 73 | 73 69 67 6e 6d 65 6e 74 |d the as|signment|
|00001290| 20 3d 2e 22 29 0a 28 64 | 65 66 76 61 72 20 73 68 | =.").(d|efvar sh|
|000012a0| 2d 68 65 72 65 2d 64 6f | 63 75 6d 65 6e 74 2d 77 |-here-do|cument-w|
|000012b0| 6f 72 64 20 22 2b 22 20 | 22 5c 0a 57 6f 72 64 20 |ord "+" |"\.Word |
|000012c0| 74 6f 20 64 65 6c 69 6d | 69 74 20 68 65 72 65 20 |to delim|it here |
|000012d0| 64 6f 63 75 6d 65 6e 74 | 73 2e 22 29 0a 28 64 65 |document|s.").(de|
|000012e0| 66 76 61 72 20 73 68 2d | 76 61 72 69 61 62 6c 65 |fvar sh-|variable|
|000012f0| 73 20 28 71 75 6f 74 65 | 20 28 28 22 61 64 64 73 |s (quote| (("adds|
|00001300| 75 66 66 69 78 22 20 74 | 63 73 68 29 20 28 22 61 |uffix" t|csh) ("a|
|00001310| 6c 6c 6f 77 5f 6e 75 6c | 6c 5f 67 6c 6f 62 5f 65 |llow_nul|l_glob_e|
|00001320| 78 70 61 6e 73 69 6f 6e | 22 20 62 61 73 68 29 20 |xpansion|" bash) |
|00001330| 28 22 61 6d 70 6d 22 20 | 74 63 73 68 29 20 28 22 |("ampm" |tcsh) ("|
|00001340| 61 72 67 76 22 20 63 73 | 68 20 74 63 73 68 29 20 |argv" cs|h tcsh) |
|00001350| 28 22 61 75 74 6f 63 6f | 72 72 65 63 74 22 20 74 |("autoco|rrect" t|
|00001360| 63 73 68 29 20 28 22 61 | 75 74 6f 65 78 70 61 6e |csh) ("a|utoexpan|
|00001370| 64 22 20 74 63 73 68 29 | 20 28 22 61 75 74 6f 6c |d" tcsh)| ("autol|
|00001380| 69 73 74 22 20 74 63 73 | 68 29 20 28 22 61 75 74 |ist" tcs|h) ("aut|
|00001390| 6f 6c 6f 67 6f 75 74 22 | 20 74 63 73 68 29 20 28 |ologout"| tcsh) (|
|000013a0| 22 61 75 74 6f 5f 72 65 | 73 75 6d 65 22 20 62 61 |"auto_re|sume" ba|
|000013b0| 73 68 29 20 28 22 42 41 | 53 48 22 20 62 61 73 68 |sh) ("BA|SH" bash|
|000013c0| 29 20 28 22 42 41 53 48 | 5f 56 45 52 53 49 4f 4e |) ("BASH|_VERSION|
|000013d0| 22 20 62 61 73 68 29 20 | 28 22 63 64 61 62 6c 65 |" bash) |("cdable|
|000013e0| 5f 76 61 72 73 22 20 62 | 61 73 68 29 20 28 22 63 |_vars" b|ash) ("c|
|000013f0| 64 70 61 74 68 22 20 63 | 73 68 20 74 63 73 68 29 |dpath" c|sh tcsh)|
|00001400| 20 28 22 43 44 50 41 54 | 48 22 20 73 68 20 6b 73 | ("CDPAT|H" sh ks|
|00001410| 68 20 62 61 73 68 29 20 | 28 22 63 68 61 73 65 5f |h bash) |("chase_|
|00001420| 73 79 6d 6c 69 6e 6b 73 | 22 20 74 63 73 68 29 20 |symlinks|" tcsh) |
|00001430| 28 22 63 68 69 6c 64 22 | 20 63 73 68 20 74 63 73 |("child"| csh tcs|
|00001440| 68 29 20 28 22 43 4f 4c | 55 4d 4e 53 22 20 6b 73 |h) ("COL|UMNS" ks|
|00001450| 68 20 74 63 73 68 29 20 | 28 22 63 6f 72 72 65 63 |h tcsh) |("correc|
|00001460| 74 22 20 74 63 73 68 29 | 20 28 22 64 65 78 74 72 |t" tcsh)| ("dextr|
|00001470| 61 63 74 22 20 74 63 73 | 68 29 20 28 22 65 63 68 |act" tcs|h) ("ech|
|00001480| 6f 22 20 63 73 68 20 74 | 63 73 68 29 20 28 22 65 |o" csh t|csh) ("e|
|00001490| 64 69 74 22 20 74 63 73 | 68 29 20 28 22 45 44 49 |dit" tcs|h) ("EDI|
|000014a0| 54 4f 52 22 29 20 28 22 | 65 6c 22 20 74 63 73 68 |TOR") ("|el" tcsh|
|000014b0| 29 20 28 22 45 4e 56 22 | 20 6b 73 68 20 62 61 73 |) ("ENV"| ksh bas|
|000014c0| 68 29 20 28 22 45 52 52 | 4e 4f 22 20 6b 73 68 29 |h) ("ERR|NO" ksh)|
|000014d0| 20 28 22 45 55 49 44 22 | 20 62 61 73 68 29 20 28 | ("EUID"| bash) (|
|000014e0| 22 46 43 45 44 49 54 22 | 20 6b 73 68 20 62 61 73 |"FCEDIT"| ksh bas|
|000014f0| 68 29 20 28 22 46 49 47 | 4e 4f 52 45 22 20 62 61 |h) ("FIG|NORE" ba|
|00001500| 73 68 29 20 28 22 66 69 | 67 6e 6f 72 65 22 20 74 |sh) ("fi|gnore" t|
|00001510| 63 73 68 29 20 28 22 46 | 50 41 54 48 22 20 6b 73 |csh) ("F|PATH" ks|
|00001520| 68 29 20 28 22 67 69 64 | 22 20 74 63 73 68 29 20 |h) ("gid|" tcsh) |
|00001530| 28 22 67 6c 6f 62 5f 64 | 6f 74 5f 66 69 6c 65 6e |("glob_d|ot_filen|
|00001540| 61 6d 65 73 22 20 62 61 | 73 68 29 20 28 22 68 69 |ames" ba|sh) ("hi|
|00001550| 73 74 63 68 61 72 73 22 | 20 62 61 73 68 20 63 73 |stchars"| bash cs|
|00001560| 68 20 74 63 73 68 29 20 | 28 22 48 49 53 54 46 49 |h tcsh) |("HISTFI|
|00001570| 4c 45 22 20 6b 73 68 20 | 62 61 73 68 29 20 28 22 |LE" ksh |bash) ("|
|00001580| 48 49 53 54 46 49 4c 45 | 53 49 5a 45 22 20 62 61 |HISTFILE|SIZE" ba|
|00001590| 73 68 29 20 28 22 68 69 | 73 74 6c 69 74 22 20 74 |sh) ("hi|stlit" t|
|000015a0| 63 73 68 29 20 28 22 68 | 69 73 74 6f 72 79 22 20 |csh) ("h|istory" |
|000015b0| 63 73 68 20 74 63 73 68 | 29 20 28 22 68 69 73 74 |csh tcsh|) ("hist|
|000015c0| 6f 72 79 5f 63 6f 6e 74 | 72 6f 6c 22 20 62 61 73 |ory_cont|rol" bas|
|000015d0| 68 29 20 28 22 48 49 53 | 54 53 49 5a 45 22 20 62 |h) ("HIS|TSIZE" b|
|000015e0| 61 73 68 29 20 28 22 68 | 6f 6d 65 22 20 63 73 68 |ash) ("h|ome" csh|
|000015f0| 20 74 63 73 68 29 20 28 | 22 48 4f 4d 45 22 29 20 | tcsh) (|"HOME") |
|00001600| 28 22 48 4f 53 54 22 20 | 74 63 73 68 29 20 28 22 |("HOST" |tcsh) ("|
|00001610| 68 6f 73 74 6e 61 6d 65 | 5f 63 6f 6d 70 6c 65 74 |hostname|_complet|
|00001620| 69 6f 6e 5f 66 69 6c 65 | 22 20 62 61 73 68 29 20 |ion_file|" bash) |
|00001630| 28 22 48 4f 53 54 54 59 | 50 45 22 20 62 61 73 68 |("HOSTTY|PE" bash|
|00001640| 20 74 63 73 68 29 20 28 | 22 48 50 41 54 48 22 20 | tcsh) (|"HPATH" |
|00001650| 74 63 73 68 29 20 28 22 | 48 55 53 48 4c 4f 47 49 |tcsh) ("|HUSHLOGI|
|00001660| 4e 22 29 20 28 22 49 46 | 53 22 20 73 68 20 6b 73 |N") ("IF|S" sh ks|
|00001670| 68 20 62 61 73 68 29 20 | 28 22 69 67 6e 6f 72 65 |h bash) |("ignore|
|00001680| 65 6f 66 22 20 62 61 73 | 68 20 63 73 68 20 74 63 |eof" bas|h csh tc|
|00001690| 73 68 29 20 28 22 49 47 | 4e 4f 52 45 45 4f 46 22 |sh) ("IG|NOREEOF"|
|000016a0| 20 62 61 73 68 29 20 28 | 22 69 67 6e 6f 72 65 5f | bash) (|"ignore_|
|000016b0| 73 79 6d 6c 69 6e 6b 73 | 22 20 74 63 73 68 29 20 |symlinks|" tcsh) |
|000016c0| 28 22 4c 41 4e 47 22 29 | 20 28 22 4c 43 5f 43 4f |("LANG")| ("LC_CO|
|000016d0| 4c 4c 41 54 45 22 29 20 | 28 22 4c 43 5f 43 54 59 |LLATE") |("LC_CTY|
|000016e0| 50 45 22 29 20 28 22 4c | 43 5f 4d 45 53 53 41 47 |PE") ("L|C_MESSAG|
|000016f0| 45 53 22 29 20 28 22 4c | 43 5f 4d 4f 4e 45 54 41 |ES") ("L|C_MONETA|
|00001700| 52 59 22 29 20 28 22 4c | 43 5f 4e 55 4d 45 52 49 |RY") ("L|C_NUMERI|
|00001710| 43 22 29 20 28 22 4c 43 | 5f 54 49 4d 45 22 29 20 |C") ("LC|_TIME") |
|00001720| 28 22 4c 49 4e 45 4e 4f | 22 20 6b 73 68 20 62 61 |("LINENO|" ksh ba|
|00001730| 73 68 29 20 28 22 4c 49 | 4e 45 53 22 20 6b 73 68 |sh) ("LI|NES" ksh|
|00001740| 20 74 63 73 68 29 20 28 | 22 6c 69 73 74 6a 6f 62 | tcsh) (|"listjob|
|00001750| 73 22 20 74 63 73 68 29 | 20 28 22 6c 69 73 74 6c |s" tcsh)| ("listl|
|00001760| 69 6e 6b 73 22 20 74 63 | 73 68 29 20 28 22 6c 69 |inks" tc|sh) ("li|
|00001770| 73 74 6d 61 78 22 20 74 | 63 73 68 29 20 28 22 4c |stmax" t|csh) ("L|
|00001780| 4f 47 4e 41 4d 45 22 29 | 20 28 22 6d 61 69 6c 22 |OGNAME")| ("mail"|
|00001790| 20 63 73 68 20 74 63 73 | 68 29 20 28 22 4d 41 49 | csh tcs|h) ("MAI|
|000017a0| 4c 22 29 20 28 22 4d 41 | 49 4c 43 48 45 43 4b 22 |L") ("MA|ILCHECK"|
|000017b0| 29 20 28 22 4d 41 49 4c | 50 41 54 48 22 29 20 28 |) ("MAIL|PATH") (|
|000017c0| 22 4d 41 49 4c 5f 57 41 | 52 4e 49 4e 47 22 20 62 |"MAIL_WA|RNING" b|
|000017d0| 61 73 68 29 20 28 22 6d | 61 74 63 68 62 65 65 70 |ash) ("m|atchbeep|
|000017e0| 22 20 74 63 73 68 29 20 | 28 22 6e 6f 62 65 65 70 |" tcsh) |("nobeep|
|000017f0| 22 20 74 63 73 68 29 20 | 28 22 6e 6f 63 6c 6f 62 |" tcsh) |("noclob|
|00001800| 62 65 72 22 20 62 61 73 | 68 20 63 73 68 20 74 63 |ber" bas|h csh tc|
|00001810| 73 68 29 20 28 22 6e 6f | 67 6c 6f 62 22 20 63 73 |sh) ("no|glob" cs|
|00001820| 68 20 74 63 73 68 29 20 | 28 22 6e 6f 6c 69 6e 6b |h tcsh) |("nolink|
|00001830| 73 22 20 62 61 73 68 29 | 20 28 22 6e 6f 6e 6f 6d |s" bash)| ("nonom|
|00001840| 61 74 63 68 22 20 63 73 | 68 20 74 63 73 68 29 20 |atch" cs|h tcsh) |
|00001850| 28 22 4e 4f 52 45 42 49 | 4e 44 22 20 74 63 73 68 |("NOREBI|ND" tcsh|
|00001860| 29 20 28 22 6e 6f 74 69 | 66 79 22 20 62 61 73 68 |) ("noti|fy" bash|
|00001870| 29 20 28 22 6e 6f 5f 65 | 78 69 74 5f 6f 6e 5f 66 |) ("no_e|xit_on_f|
|00001880| 61 69 6c 65 64 5f 65 78 | 65 63 22 20 62 61 73 68 |ailed_ex|ec" bash|
|00001890| 29 20 28 22 4e 4f 5f 50 | 52 4f 4d 50 54 5f 56 41 |) ("NO_P|ROMPT_VA|
|000018a0| 52 53 22 20 62 61 73 68 | 29 20 28 22 6f 69 64 22 |RS" bash|) ("oid"|
|000018b0| 20 74 63 73 68 29 20 28 | 22 4f 4c 44 50 57 44 22 | tcsh) (|"OLDPWD"|
|000018c0| 20 6b 73 68 20 62 61 73 | 68 29 20 28 22 4f 50 54 | ksh bas|h) ("OPT|
|000018d0| 41 52 47 22 20 73 68 20 | 6b 73 68 20 62 61 73 68 |ARG" sh |ksh bash|
|000018e0| 29 20 28 22 4f 50 54 45 | 52 52 22 20 62 61 73 68 |) ("OPTE|RR" bash|
|000018f0| 29 20 28 22 4f 50 54 49 | 4e 44 22 20 73 68 20 6b |) ("OPTI|ND" sh k|
|00001900| 73 68 20 62 61 73 68 29 | 20 28 22 50 41 47 45 52 |sh bash)| ("PAGER|
|00001910| 22 29 20 28 22 70 61 74 | 68 22 20 63 73 68 20 74 |") ("pat|h" csh t|
|00001920| 63 73 68 29 20 28 22 50 | 41 54 48 22 29 20 28 22 |csh) ("P|ATH") ("|
|00001930| 50 50 49 44 22 20 6b 73 | 68 20 62 61 73 68 29 20 |PPID" ks|h bash) |
|00001940| 28 22 70 72 69 6e 74 65 | 78 69 74 76 61 6c 75 65 |("printe|xitvalue|
|00001950| 22 20 74 63 73 68 29 20 | 28 22 70 72 6f 6d 70 74 |" tcsh) |("prompt|
|00001960| 22 20 63 73 68 20 74 63 | 73 68 29 20 28 22 70 72 |" csh tc|sh) ("pr|
|00001970| 6f 6d 70 74 32 22 20 74 | 63 73 68 29 20 28 22 70 |ompt2" t|csh) ("p|
|00001980| 72 6f 6d 70 74 33 22 20 | 74 63 73 68 29 20 28 22 |rompt3" |tcsh) ("|
|00001990| 50 52 4f 4d 50 54 5f 43 | 4f 4d 4d 41 4e 44 22 20 |PROMPT_C|OMMAND" |
|000019a0| 62 61 73 68 29 20 28 22 | 50 53 31 22 20 73 68 20 |bash) ("|PS1" sh |
|000019b0| 6b 73 68 20 62 61 73 68 | 29 20 28 22 50 53 32 22 |ksh bash|) ("PS2"|
|000019c0| 20 73 68 20 6b 73 68 20 | 62 61 73 68 29 20 28 22 | sh ksh |bash) ("|
|000019d0| 50 53 33 22 20 6b 73 68 | 29 20 28 22 50 53 34 22 |PS3" ksh|) ("PS4"|
|000019e0| 20 6b 73 68 20 62 61 73 | 68 29 20 28 22 70 75 73 | ksh bas|h) ("pus|
|000019f0| 68 64 73 69 6c 65 6e 74 | 22 20 74 63 73 68 29 20 |hdsilent|" tcsh) |
|00001a00| 28 22 70 75 73 68 64 74 | 6f 68 6f 6d 65 22 20 74 |("pushdt|ohome" t|
|00001a10| 63 73 68 29 20 28 22 70 | 75 73 68 64 5f 73 69 6c |csh) ("p|ushd_sil|
|00001a20| 65 6e 74 22 20 62 61 73 | 68 29 20 28 22 50 57 44 |ent" bas|h) ("PWD|
|00001a30| 22 20 6b 73 68 20 62 61 | 73 68 29 20 28 22 52 41 |" ksh ba|sh) ("RA|
|00001a40| 4e 44 4f 4d 22 20 6b 73 | 68 20 62 61 73 68 29 20 |NDOM" ks|h bash) |
|00001a50| 28 22 72 65 63 65 78 61 | 63 74 22 20 74 63 73 68 |("recexa|ct" tcsh|
|00001a60| 29 20 28 22 72 65 63 6f | 67 6e 69 7a 65 5f 6f 6e |) ("reco|gnize_on|
|00001a70| 6c 79 5f 65 78 65 63 75 | 74 61 62 6c 65 73 22 20 |ly_execu|tables" |
|00001a80| 74 63 73 68 29 20 28 22 | 52 45 50 4c 59 22 20 6b |tcsh) ("|REPLY" k|
|00001a90| 73 68 20 62 61 73 68 29 | 20 28 22 72 6d 73 74 61 |sh bash)| ("rmsta|
|00001aa0| 72 22 20 74 63 73 68 29 | 20 28 22 73 61 76 65 68 |r" tcsh)| ("saveh|
|00001ab0| 69 73 74 22 20 74 63 73 | 68 29 20 28 22 53 45 43 |ist" tcs|h) ("SEC|
|00001ac0| 4f 4e 44 53 22 20 6b 73 | 68 20 62 61 73 68 29 20 |ONDS" ks|h bash) |
|00001ad0| 28 22 73 68 65 6c 6c 22 | 20 63 73 68 20 74 63 73 |("shell"| csh tcs|
|00001ae0| 68 29 20 28 22 53 48 45 | 4c 4c 22 29 20 28 22 53 |h) ("SHE|LL") ("S|
|00001af0| 48 4c 56 4c 22 20 62 61 | 73 68 20 74 63 73 68 29 |HLVL" ba|sh tcsh)|
|00001b00| 20 28 22 73 68 6f 77 64 | 6f 74 73 22 20 74 63 73 | ("showd|ots" tcs|
|00001b10| 68 29 20 28 22 73 6c 22 | 20 74 63 73 68 29 20 28 |h) ("sl"| tcsh) (|
|00001b20| 22 73 74 61 74 75 73 22 | 20 63 73 68 20 74 63 73 |"status"| csh tcs|
|00001b30| 68 29 20 28 22 53 59 53 | 54 59 50 45 22 20 74 63 |h) ("SYS|TYPE" tc|
|00001b40| 73 68 29 20 28 22 74 63 | 73 68 22 20 74 63 73 68 |sh) ("tc|sh" tcsh|
|00001b50| 29 20 28 22 74 65 72 6d | 22 20 74 63 73 68 29 20 |) ("term|" tcsh) |
|00001b60| 28 22 54 45 52 4d 22 29 | 20 28 22 54 45 52 4d 43 |("TERM")| ("TERMC|
|00001b70| 41 50 22 29 20 28 22 74 | 69 6d 65 22 20 63 73 68 |AP") ("t|ime" csh|
|00001b80| 20 74 63 73 68 29 20 28 | 22 54 4d 4f 55 54 22 20 | tcsh) (|"TMOUT" |
|00001b90| 6b 73 68 20 62 61 73 68 | 29 20 28 22 74 70 65 72 |ksh bash|) ("tper|
|00001ba0| 69 6f 64 22 20 74 63 73 | 68 29 20 28 22 74 74 79 |iod" tcs|h) ("tty|
|00001bb0| 22 20 74 63 73 68 29 20 | 28 22 55 49 44 22 20 62 |" tcsh) |("UID" b|
|00001bc0| 61 73 68 29 20 28 22 75 | 69 64 22 20 74 63 73 68 |ash) ("u|id" tcsh|
|00001bd0| 29 20 28 22 76 65 72 62 | 6f 73 65 22 20 63 73 68 |) ("verb|ose" csh|
|00001be0| 20 74 63 73 68 29 20 28 | 22 76 65 72 73 69 6f 6e | tcsh) (|"version|
|00001bf0| 22 20 74 63 73 68 29 20 | 28 22 76 69 73 69 62 6c |" tcsh) |("visibl|
|00001c00| 65 62 65 6c 6c 22 20 74 | 63 73 68 29 20 28 22 56 |ebell" t|csh) ("V|
|00001c10| 49 53 55 41 4c 22 29 20 | 28 22 77 61 74 63 68 22 |ISUAL") |("watch"|
|00001c20| 20 74 63 73 68 29 20 28 | 22 77 68 6f 22 20 74 63 | tcsh) (|"who" tc|
|00001c30| 73 68 29 20 28 22 77 6f | 72 64 63 68 61 72 73 22 |sh) ("wo|rdchars"|
|00001c40| 20 74 63 73 68 29 29 29 | 20 22 5c 0a 41 6c 69 73 | tcsh)))| "\.Alis|
|00001c50| 74 20 6f 66 20 61 6c 6c | 20 65 6e 76 69 72 6f 6e |t of all| environ|
|00001c60| 6d 65 6e 74 20 61 6e 64 | 20 73 68 65 6c 6c 20 76 |ment and| shell v|
|00001c70| 61 72 69 61 62 6c 65 73 | 20 75 73 65 64 20 66 6f |ariables| used fo|
|00001c80| 72 20 63 6f 6d 70 6c 65 | 74 69 6e 67 20 72 65 61 |r comple|ting rea|
|00001c90| 64 2e 0a 56 61 72 69 61 | 62 6c 65 73 20 6f 6e 6c |d..Varia|bles onl|
|00001ca0| 79 20 75 6e 64 65 72 73 | 74 6f 6f 64 20 62 79 20 |y unders|tood by |
|00001cb0| 73 6f 6d 65 20 73 68 65 | 6c 6c 73 20 61 72 65 20 |some she|lls are |
|00001cc0| 61 73 73 6f 63 69 61 74 | 65 64 20 74 6f 20 61 20 |associat|ed to a |
|00001cd0| 6c 69 73 74 20 6f 66 20 | 74 68 6f 73 65 2e 22 29 |list of |those.")|
|00001ce0| 0a 28 64 65 66 76 61 72 | 20 73 68 2d 66 6f 6e 74 |.(defvar| sh-font|
|00001cf0| 2d 6c 6f 63 6b 2d 6b 65 | 79 77 6f 72 64 73 20 28 |-lock-ke|ywords (|
|00001d00| 71 75 6f 74 65 20 28 28 | 22 5b 20 09 5d 5c 5c 28 |quote ((|"[ .]\\(|
|00001d10| 23 2e 2a 5c 5c 29 22 20 | 31 20 66 6f 6e 74 2d 6c |#.*\\)" |1 font-l|
|00001d20| 6f 63 6b 2d 63 6f 6d 6d | 65 6e 74 2d 66 61 63 65 |ock-comm|ent-face|
|00001d30| 29 20 28 22 5c 22 5b 5e | 60 5d 2a 5c 22 5c 5c 7c |) ("\"[^|`]*\"\\||
|00001d40| 27 2e 2a 27 5c 5c 7c 5c | 5c 5c 5c 5b 5e 5c 6e 6e |'.*'\\|\|\\\[^\nn|
|00001d50| 74 63 5d 22 20 2e 20 66 | 6f 6e 74 2d 6c 6f 63 6b |tc]" . f|ont-lock|
|00001d60| 2d 73 74 72 69 6e 67 2d | 66 61 63 65 29 29 29 20 |-string-|face))) |
|00001d70| 22 5c 0a 2a 52 75 6c 65 | 73 20 66 6f 72 20 68 69 |"\.*Rule|s for hi|
|00001d80| 67 68 6c 69 67 68 74 69 | 6e 67 20 73 68 65 6c 6c |ghlighti|ng shell|
|00001d90| 20 73 63 72 69 70 74 73 | 2e 0a 54 68 69 73 20 76 | scripts|..This v|
|00001da0| 61 72 69 61 62 6c 65 20 | 69 73 20 69 6e 63 6c 75 |ariable |is inclu|
|00001db0| 64 65 64 20 69 6e 74 6f | 20 74 68 65 20 76 61 72 |ded into| the var|
|00001dc0| 69 6f 75 73 20 76 61 72 | 69 61 62 6c 65 73 0a 60 |ious var|iables.`|
|00001dd0| 73 68 2d 53 48 45 4c 4c | 2d 66 6f 6e 74 2d 6c 6f |sh-SHELL|-font-lo|
|00001de0| 63 6b 2d 6b 65 79 77 6f | 72 64 73 27 2e 20 20 49 |ck-keywo|rds'. I|
|00001df0| 66 20 6e 6f 20 73 75 63 | 68 20 76 61 72 69 61 62 |f no suc|h variab|
|00001e00| 6c 65 20 65 78 69 73 74 | 73 20 66 6f 72 20 73 6f |le exist|s for so|
|00001e10| 6d 65 20 73 68 65 6c 6c | 2c 0a 74 68 69 73 20 6f |me shell|,.this o|
|00001e20| 6e 65 20 69 73 20 75 73 | 65 64 2e 22 29 0a 28 64 |ne is us|ed.").(d|
|00001e30| 65 66 76 61 72 20 73 68 | 2d 73 68 2d 66 6f 6e 74 |efvar sh|-sh-font|
|00001e40| 2d 6c 6f 63 6b 2d 6b 65 | 79 77 6f 72 64 73 20 28 |-lock-ke|ywords (|
|00001e50| 61 70 70 65 6e 64 20 73 | 68 2d 66 6f 6e 74 2d 6c |append s|h-font-l|
|00001e60| 6f 63 6b 2d 6b 65 79 77 | 6f 72 64 73 20 28 71 75 |ock-keyw|ords (qu|
|00001e70| 6f 74 65 20 28 28 22 5c | 5c 28 5e 5c 5c 7c 5b 5e |ote (("\|\(^\\|[^|
|00001e80| 2d 2e 5f 61 2d 7a 30 2d | 39 5d 5c 5c 29 5c 5c 28 |-._a-z0-|9]\\)\\(|
|00001e90| 63 61 73 65 5c 5c 7c 64 | 6f 5c 5c 7c 64 6f 6e 65 |case\\|d|o\\|done|
|00001ea0| 5c 5c 7c 65 6c 69 66 5c | 5c 7c 65 6c 73 65 5c 5c |\\|elif\|\|else\\|
|00001eb0| 7c 65 73 61 63 5c 5c 7c | 66 69 5c 5c 7c 66 6f 72 ||esac\\||fi\\|for|
|00001ec0| 5c 5c 7c 69 66 5c 5c 7c | 69 6e 5c 5c 7c 74 68 65 |\\|if\\||in\\|the|
|00001ed0| 6e 5c 5c 7c 75 6e 74 69 | 6c 5c 5c 7c 77 68 69 6c |n\\|unti|l\\|whil|
|00001ee0| 65 5c 5c 29 5c 5c 28 24 | 5c 5c 7c 5b 5e 2d 2e 5f |e\\)\\($|\\|[^-._|
|00001ef0| 61 2d 7a 30 2d 39 5d 5c | 5c 29 22 20 32 20 66 6f |a-z0-9]\|\)" 2 fo|
|00001f00| 6e 74 2d 6c 6f 63 6b 2d | 6b 65 79 77 6f 72 64 2d |nt-lock-|keyword-|
|00001f10| 66 61 63 65 20 74 29 29 | 29 29 20 22 5c 0a 2a 52 |face t))|)) "\.*R|
|00001f20| 75 6c 65 73 20 66 6f 72 | 20 68 69 67 68 6c 69 67 |ules for| highlig|
|00001f30| 68 74 69 6e 67 20 42 6f | 75 72 6e 65 20 73 68 65 |hting Bo|urne she|
|00001f40| 6c 6c 20 73 63 72 69 70 | 74 73 2e 22 29 0a 28 64 |ll scrip|ts.").(d|
|00001f50| 65 66 76 61 72 20 73 68 | 2d 6b 73 68 2d 66 6f 6e |efvar sh|-ksh-fon|
|00001f60| 74 2d 6c 6f 63 6b 2d 6b | 65 79 77 6f 72 64 73 20 |t-lock-k|eywords |
|00001f70| 28 61 70 70 65 6e 64 20 | 73 68 2d 73 68 2d 66 6f |(append |sh-sh-fo|
|00001f80| 6e 74 2d 6c 6f 63 6b 2d | 6b 65 79 77 6f 72 64 73 |nt-lock-|keywords|
|00001f90| 20 28 71 75 6f 74 65 20 | 28 28 22 5c 5c 28 5e 5c | (quote |(("\\(^\|
|00001fa0| 5c 7c 5b 5e 2d 2e 5f 61 | 2d 7a 30 2d 39 5d 5c 5c |\|[^-._a|-z0-9]\\|
|00001fb0| 29 5c 5c 28 66 75 6e 63 | 74 69 6f 6e 5c 5c 7c 73 |)\\(func|tion\\|s|
|00001fc0| 65 6c 65 63 74 5c 5c 29 | 5c 5c 28 24 5c 5c 7c 5b |elect\\)|\\($\\|[|
|00001fd0| 5e 2d 2e 5f 61 2d 7a 30 | 2d 39 5d 5c 5c 29 22 20 |^-._a-z0|-9]\\)" |
|00001fe0| 32 20 66 6f 6e 74 2d 6c | 6f 63 6b 2d 6b 65 79 77 |2 font-l|ock-keyw|
|00001ff0| 6f 72 64 2d 66 61 63 65 | 20 74 29 29 29 29 20 22 |ord-face| t)))) "|
|00002000| 5c 0a 2a 52 75 6c 65 73 | 20 66 6f 72 20 68 69 67 |\.*Rules| for hig|
|00002010| 68 6c 69 67 68 74 69 6e | 67 20 4b 6f 72 6e 20 73 |hlightin|g Korn s|
|00002020| 68 65 6c 6c 20 73 63 72 | 69 70 74 73 2e 22 29 0a |hell scr|ipts.").|
|00002030| 28 64 65 66 76 61 72 20 | 73 68 2d 62 61 73 68 2d |(defvar |sh-bash-|
|00002040| 66 6f 6e 74 2d 6c 6f 63 | 6b 2d 6b 65 79 77 6f 72 |font-loc|k-keywor|
|00002050| 64 73 20 28 61 70 70 65 | 6e 64 20 73 68 2d 73 68 |ds (appe|nd sh-sh|
|00002060| 2d 66 6f 6e 74 2d 6c 6f | 63 6b 2d 6b 65 79 77 6f |-font-lo|ck-keywo|
|00002070| 72 64 73 20 28 71 75 6f | 74 65 20 28 28 22 5c 5c |rds (quo|te (("\\|
|00002080| 28 5e 5c 5c 7c 5b 5e 2d | 2e 5f 61 2d 7a 30 2d 39 |(^\\|[^-|._a-z0-9|
|00002090| 5d 5c 5c 29 5c 5c 28 66 | 75 6e 63 74 69 6f 6e 5c |]\\)\\(f|unction\|
|000020a0| 5c 29 5c 5c 28 24 5c 5c | 7c 5b 5e 2d 2e 5f 61 2d |\)\\($\\||[^-._a-|
|000020b0| 7a 30 2d 39 5d 5c 5c 29 | 22 20 32 20 66 6f 6e 74 |z0-9]\\)|" 2 font|
|000020c0| 2d 6c 6f 63 6b 2d 6b 65 | 79 77 6f 72 64 2d 66 61 |-lock-ke|yword-fa|
|000020d0| 63 65 20 74 29 29 29 29 | 20 22 5c 0a 2a 52 75 6c |ce t))))| "\.*Rul|
|000020e0| 65 73 20 66 6f 72 20 68 | 69 67 68 6c 69 67 68 74 |es for h|ighlight|
|000020f0| 69 6e 67 20 42 6f 75 72 | 6e 65 20 61 67 61 69 6e |ing Bour|ne again|
|00002100| 20 73 68 65 6c 6c 20 73 | 63 72 69 70 74 73 2e 22 | shell s|cripts."|
|00002110| 29 0a 28 64 65 66 76 61 | 72 20 73 68 2d 63 73 68 |).(defva|r sh-csh|
|00002120| 2d 66 6f 6e 74 2d 6c 6f | 63 6b 2d 6b 65 79 77 6f |-font-lo|ck-keywo|
|00002130| 72 64 73 20 28 61 70 70 | 65 6e 64 20 73 68 2d 66 |rds (app|end sh-f|
|00002140| 6f 6e 74 2d 6c 6f 63 6b | 2d 6b 65 79 77 6f 72 64 |ont-lock|-keyword|
|00002150| 73 20 28 71 75 6f 74 65 | 20 28 28 22 5c 5c 28 5e |s (quote| (("\\(^|
|00002160| 5c 5c 7c 5b 5e 2d 2e 5f | 61 2d 7a 30 2d 39 5d 5c |\\|[^-._|a-z0-9]\|
|00002170| 5c 29 5c 5c 28 62 72 65 | 61 6b 73 77 5c 5c 7c 63 |\)\\(bre|aksw\\|c|
|00002180| 61 73 65 5c 5c 7c 64 65 | 66 61 75 6c 74 5c 5c 7c |ase\\|de|fault\\||
|00002190| 65 6c 73 65 5c 5c 7c 65 | 6e 64 5c 5c 7c 65 6e 64 |else\\|e|nd\\|end|
|000021a0| 69 66 5c 5c 7c 66 6f 72 | 65 61 63 68 5c 5c 7c 69 |if\\|for|each\\|i|
|000021b0| 66 5c 5c 7c 73 77 69 74 | 63 68 5c 5c 7c 74 68 65 |f\\|swit|ch\\|the|
|000021c0| 6e 5c 5c 7c 77 68 69 6c | 65 5c 5c 29 5c 5c 28 24 |n\\|whil|e\\)\\($|
|000021d0| 5c 5c 7c 5b 5e 2d 2e 5f | 61 2d 7a 30 2d 39 5d 5c |\\|[^-._|a-z0-9]\|
|000021e0| 5c 29 22 20 32 20 66 6f | 6e 74 2d 6c 6f 63 6b 2d |\)" 2 fo|nt-lock-|
|000021f0| 6b 65 79 77 6f 72 64 2d | 66 61 63 65 20 74 29 29 |keyword-|face t))|
|00002200| 29 29 20 22 5c 0a 2a 52 | 75 6c 65 73 20 66 6f 72 |)) "\.*R|ules for|
|00002210| 20 68 69 67 68 6c 69 67 | 68 74 69 6e 67 20 43 20 | highlig|hting C |
|00002220| 73 68 65 6c 6c 20 73 63 | 72 69 70 74 73 2e 22 29 |shell sc|ripts.")|
|00002230| 0a 28 64 65 66 76 61 72 | 20 73 68 2d 74 63 73 68 |.(defvar| sh-tcsh|
|00002240| 2d 66 6f 6e 74 2d 6c 6f | 63 6b 2d 6b 65 79 77 6f |-font-lo|ck-keywo|
|00002250| 72 64 73 20 73 68 2d 63 | 73 68 2d 66 6f 6e 74 2d |rds sh-c|sh-font-|
|00002260| 6c 6f 63 6b 2d 6b 65 79 | 77 6f 72 64 73 20 22 5c |lock-key|words "\|
|00002270| 0a 2a 52 75 6c 65 73 20 | 66 6f 72 20 68 69 67 68 |.*Rules |for high|
|00002280| 6c 69 67 68 74 69 6e 67 | 20 54 6f 72 6f 6e 74 6f |lighting| Toronto|
|00002290| 20 43 20 73 68 65 6c 6c | 20 73 63 72 69 70 74 73 | C shell| scripts|
|000022a0| 2e 22 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |.").(def|alias 's|
|000022b0| 68 2d 6f 72 2d 6f 74 68 | 65 72 2d 6d 6f 64 65 20 |h-or-oth|er-mode |
|000022c0| 23 5b 6e 69 6c 20 22 08 | 89 19 83 15 00 c2 09 40 |#[nil ".|.......@|
|000022d0| 40 21 84 15 00 09 41 89 | 11 84 06 00 09 40 41 29 |@!....A.|.....@A)|
|000022e0| 86 1d 00 c3 20 87 22 20 | 5b 6d 61 67 69 63 2d 6e |.... ." |[magic-n|
|000022f0| 75 6d 62 65 72 2d 61 6c | 69 73 74 20 6c 20 6c 6f |umber-al|ist l lo|
|00002300| 6f 6b 69 6e 67 2d 61 74 | 20 73 68 2d 6d 6f 64 65 |oking-at| sh-mode|
|00002310| 5d 20 33 20 22 5c 0a 44 | 65 63 69 64 65 20 77 68 |] 3 "\.D|ecide wh|
|00002320| 65 74 68 65 72 20 74 68 | 69 73 20 69 73 20 61 20 |ether th|is is a |
|00002330| 63 6f 6d 70 69 6c 65 64 | 20 65 78 65 63 75 74 61 |compiled| executa|
|00002340| 62 6c 65 20 6f 72 20 61 | 20 73 63 72 69 70 74 2e |ble or a| script.|
|00002350| 0a 55 73 75 61 6c 6c 79 | 20 74 68 65 20 66 69 6c |.Usually| the fil|
|00002360| 65 2d 6e 61 6d 65 73 20 | 6f 66 20 73 63 72 69 70 |e-names |of scrip|
|00002370| 74 73 20 61 6e 64 20 62 | 69 6e 61 72 69 65 73 20 |ts and b|inaries |
|00002380| 63 61 6e 6e 6f 74 20 62 | 65 20 61 75 74 6f 6d 61 |cannot b|e automa|
|00002390| 74 69 63 61 6c 6c 79 0a | 64 69 73 74 69 6e 67 75 |tically.|distingu|
|000023a0| 69 73 68 65 64 2c 20 73 | 6f 20 74 68 65 20 70 72 |ished, s|o the pr|
|000023b0| 65 73 65 6e 63 65 20 6f | 66 20 61 6e 20 65 78 65 |esence o|f an exe|
|000023c0| 63 75 74 61 62 6c 65 27 | 73 20 6d 61 67 69 63 20 |cutable'|s magic |
|000023d0| 6e 75 6d 62 65 72 20 69 | 73 20 75 73 65 64 2e 22 |number i|s used."|
|000023e0| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 73 68 |]).(defa|lias 'sh|
|000023f0| 2d 6d 6f 64 65 20 23 5b | 6e 69 6c 20 22 c0 20 88 |-mode #[|nil ". .|
|00002400| c1 5c 6e 21 88 c3 5c 66 | 21 88 c5 c6 21 88 c5 c7 |.\n!..\f|!...!...|
|00002410| 21 88 c5 c8 21 88 c5 c9 | 21 88 c5 ca 21 88 c5 cb |!...!...|!...!...|
|00002420| 21 88 c5 cc 21 88 c5 cd | 21 88 c5 ce 21 88 c5 cf |!...!...|!...!...|
|00002430| 21 88 c5 d0 21 88 c5 d1 | 21 88 c5 d2 21 88 d3 16 |!...!...|!...!...|
|00002440| 14 d5 16 16 d7 16 06 d8 | 16 07 d9 16 09 0e 1a 16 |........|........|
|00002450| 1b dc 16 5c 6e dd 16 11 | de 16 0e df 16 0f 65 62 |...\n...|......eb|
|00002460| 88 e0 e1 e2 21 83 70 00 | e3 94 e3 95 7b 82 72 00 |....!.p.|....{.r.|
|00002470| 0e 0b 21 88 e4 e5 21 83 | 8a 00 0e 25 83 8a 00 0e |..!...!.|...%....|
|00002480| 26 dc 3d 84 8a 00 e7 dd | 21 88 e8 e9 21 87 22 20 |&.=.....|!...!." |
|00002490| 5b 6b 69 6c 6c 2d 61 6c | 6c 2d 6c 6f 63 61 6c 2d |[kill-al|l-local-|
|000024a0| 76 61 72 69 61 62 6c 65 | 73 20 73 65 74 2d 73 79 |variable|s set-sy|
|000024b0| 6e 74 61 78 2d 74 61 62 | 6c 65 20 73 68 2d 6d 6f |ntax-tab|le sh-mo|
|000024c0| 64 65 2d 73 79 6e 74 61 | 78 2d 74 61 62 6c 65 20 |de-synta|x-table |
|000024d0| 75 73 65 2d 6c 6f 63 61 | 6c 2d 6d 61 70 20 73 68 |use-loca|l-map sh|
|000024e0| 2d 6d 6f 64 65 2d 6d 61 | 70 20 6d 61 6b 65 2d 6c |-mode-ma|p make-l|
|000024f0| 6f 63 61 6c 2d 76 61 72 | 69 61 62 6c 65 20 69 6e |ocal-var|iable in|
|00002500| 64 65 6e 74 2d 6c 69 6e | 65 2d 66 75 6e 63 74 69 |dent-lin|e-functi|
|00002510| 6f 6e 20 63 6f 6d 6d 65 | 6e 74 2d 73 74 61 72 74 |on comme|nt-start|
|00002520| 20 63 6f 6d 6d 65 6e 74 | 2d 73 74 61 72 74 2d 73 | comment|-start-s|
|00002530| 6b 69 70 20 61 66 74 65 | 72 2d 73 61 76 65 2d 68 |kip afte|r-save-h|
|00002540| 6f 6f 6b 20 72 65 71 75 | 69 72 65 2d 66 69 6e 61 |ook requ|ire-fina|
|00002550| 6c 2d 6e 65 77 6c 69 6e | 65 20 73 68 2d 73 68 65 |l-newlin|e sh-she|
|00002560| 6c 6c 2d 70 61 74 68 20 | 73 68 2d 73 68 65 6c 6c |ll-path |sh-shell|
|00002570| 20 73 68 2d 73 68 65 6c | 6c 2d 69 73 2d 63 73 68 | sh-shel|l-is-csh|
|00002580| 20 70 61 69 72 2d 61 6c | 69 73 74 20 70 61 69 72 | pair-al|ist pair|
|00002590| 2d 66 69 6c 74 65 72 20 | 66 6f 6e 74 2d 6c 6f 63 |-filter |font-loc|
|000025a0| 6b 2d 6b 65 79 77 6f 72 | 64 73 20 66 6f 6e 74 2d |k-keywor|ds font-|
|000025b0| 6c 6f 63 6b 2d 6b 65 79 | 77 6f 72 64 73 2d 63 61 |lock-key|words-ca|
|000025c0| 73 65 2d 66 6f 6c 64 2d | 73 65 61 72 63 68 20 73 |se-fold-|search s|
|000025d0| 68 2d 76 61 72 69 61 62 | 6c 65 73 20 73 68 2d 6d |h-variab|les sh-m|
|000025e0| 6f 64 65 20 6d 61 6a 6f | 72 2d 6d 6f 64 65 20 22 |ode majo|r-mode "|
|000025f0| 53 68 65 6c 6c 2d 73 63 | 72 69 70 74 22 20 6d 6f |Shell-sc|ript" mo|
|00002600| 64 65 2d 6e 61 6d 65 20 | 73 68 2d 69 6e 64 65 6e |de-name |sh-inden|
|00002610| 74 2d 6c 69 6e 65 20 22 | 23 20 22 20 73 68 2d 63 |t-line "|# " sh-c|
|00002620| 68 6d 6f 64 20 73 68 2d | 74 61 62 2d 77 69 64 74 |hmod sh-|tab-widt|
|00002630| 68 20 74 61 62 2d 77 69 | 64 74 68 20 74 20 6e 69 |h tab-wi|dth t ni|
|00002640| 6c 20 28 28 39 36 20 5f | 20 39 36 29 29 20 73 68 |l ((96 _| 96)) sh|
|00002650| 2d 71 75 6f 74 65 64 2d | 70 20 73 68 2d 73 65 74 |-quoted-|p sh-set|
|00002660| 2d 73 68 65 6c 6c 20 6c | 6f 6f 6b 69 6e 67 2d 61 |-shell l|ooking-a|
|00002670| 74 20 22 23 21 5b 09 20 | 5d 2a 5c 5c 28 5b 5e 09 |t "#![. |]*\\([^.|
|00002680| 5c 6e 20 5d 2b 5c 5c 29 | 22 20 31 20 62 6f 75 6e |\n ]+\\)|" 1 boun|
|00002690| 64 70 20 66 69 6e 64 2d | 66 69 6c 65 20 73 68 2d |dp find-|file sh-|
|000026a0| 66 69 6e 64 2d 66 69 6c | 65 2d 6d 6f 64 69 66 69 |find-fil|e-modifi|
|000026b0| 65 73 20 73 65 74 2d 62 | 75 66 66 65 72 2d 6d 6f |es set-b|uffer-mo|
|000026c0| 64 69 66 69 65 64 2d 70 | 20 72 75 6e 2d 68 6f 6f |dified-p| run-hoo|
|000026d0| 6b 73 20 73 68 2d 6d 6f | 64 65 2d 68 6f 6f 6b 5d |ks sh-mo|de-hook]|
|000026e0| 20 33 20 22 5c 0a 4d 61 | 6a 6f 72 20 6d 6f 64 65 | 3 "\.Ma|jor mode|
|000026f0| 20 66 6f 72 20 65 64 69 | 74 69 6e 67 20 73 68 65 | for edi|ting she|
|00002700| 6c 6c 20 73 63 72 69 70 | 74 73 2e 0a 54 68 69 73 |ll scrip|ts..This|
|00002710| 20 6d 6f 64 65 20 77 6f | 72 6b 73 20 66 6f 72 20 | mode wo|rks for |
|00002720| 6d 61 6e 79 20 73 68 65 | 6c 6c 73 2c 20 73 69 6e |many she|lls, sin|
|00002730| 63 65 20 74 68 65 79 20 | 61 6c 6c 20 68 61 76 65 |ce they |all have|
|00002740| 20 72 6f 75 67 68 6c 79 | 20 74 68 65 20 73 61 6d | roughly| the sam|
|00002750| 65 20 73 79 6e 74 61 78 | 2c 0a 61 73 20 66 61 72 |e syntax|,.as far|
|00002760| 20 61 73 20 63 6f 6d 6d | 61 6e 64 73 2c 20 61 72 | as comm|ands, ar|
|00002770| 67 75 6d 65 6e 74 73 2c | 20 76 61 72 69 61 62 6c |guments,| variabl|
|00002780| 65 73 2c 20 70 69 70 65 | 73 2c 20 63 6f 6d 6d 65 |es, pipe|s, comme|
|00002790| 6e 74 73 20 65 74 63 2e | 20 61 72 65 20 63 6f 6e |nts etc.| are con|
|000027a0| 63 65 72 6e 65 64 2e 0a | 55 6e 6c 65 73 73 20 74 |cerned..|Unless t|
|000027b0| 68 65 20 66 69 6c 65 27 | 73 20 6d 61 67 69 63 20 |he file'|s magic |
|000027c0| 6e 75 6d 62 65 72 20 69 | 6e 64 69 63 61 74 65 73 |number i|ndicates|
|000027d0| 20 74 68 65 20 73 68 65 | 6c 6c 2c 20 79 6f 75 72 | the she|ll, your|
|000027e0| 20 75 73 75 61 6c 20 73 | 68 65 6c 6c 20 69 73 0a | usual s|hell is.|
|000027f0| 61 73 73 75 6d 65 64 2e | 20 20 53 69 6e 63 65 20 |assumed.| Since |
|00002800| 66 69 6c 65 6e 61 6d 65 | 73 20 72 61 72 65 6c 79 |filename|s rarely|
|00002810| 20 67 69 76 65 20 61 20 | 63 6c 75 65 2c 20 74 68 | give a |clue, th|
|00002820| 65 79 20 61 72 65 20 6e | 6f 74 20 66 75 72 74 68 |ey are n|ot furth|
|00002830| 65 72 20 61 6e 61 6c 79 | 7a 65 64 2e 0a 0a 54 68 |er analy|zed...Th|
|00002840| 65 20 73 79 6e 74 61 78 | 20 6f 66 20 74 68 65 20 |e syntax| of the |
|00002850| 73 74 61 74 65 6d 65 6e | 74 73 20 76 61 72 69 65 |statemen|ts varie|
|00002860| 73 20 77 69 74 68 20 74 | 68 65 20 73 68 65 6c 6c |s with t|he shell|
|00002870| 20 62 65 69 6e 67 20 75 | 73 65 64 2e 20 20 54 68 | being u|sed. Th|
|00002880| 65 20 73 79 6e 74 61 78 | 20 6f 66 0a 73 74 61 74 |e syntax| of.stat|
|00002890| 65 6d 65 6e 74 73 20 63 | 61 6e 20 62 65 20 6d 6f |ements c|an be mo|
|000028a0| 64 69 66 69 65 64 20 62 | 79 20 70 75 74 74 69 6e |dified b|y puttin|
|000028b0| 67 20 61 20 70 72 6f 70 | 65 72 74 79 20 6f 6e 20 |g a prop|erty on |
|000028c0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6f 72 20 6e |the comm|and or n|
|000028d0| 65 77 20 6f 6e 65 73 0a | 64 65 66 69 6e 65 64 20 |ew ones.|defined |
|000028e0| 77 69 74 68 20 60 64 65 | 66 69 6e 65 2d 73 68 2d |with `de|fine-sh-|
|000028f0| 73 6b 65 6c 65 74 6f 6e | 27 2e 20 20 46 6f 72 20 |skeleton|'. For |
|00002900| 65 78 61 6d 70 6c 65 0a | 0a 20 20 20 20 28 70 75 |example.|. (pu|
|00002910| 74 20 27 73 68 2d 75 6e | 74 69 6c 20 27 6b 73 68 |t 'sh-un|til 'ksh|
|00002920| 20 27 28 28 29 20 5c 22 | 75 6e 74 69 6c 20 5c 22 | '(() \"|until \"|
|00002930| 20 5f 20 5c 5c 6e 20 3e | 20 5c 22 64 6f 5c 22 20 | _ \\n >| \"do\" |
|00002940| 5c 5c 6e 20 5c 22 64 6f | 6e 65 5c 22 29 29 0a 6f |\\n \"do|ne\")).o|
|00002950| 72 0a 20 20 20 20 28 70 | 75 74 20 27 73 68 2d 69 |r. (p|ut 'sh-i|
|00002960| 66 20 27 73 6d 75 73 68 | 20 27 28 5c 22 57 68 61 |f 'smush| '(\"Wha|
|00002970| 74 3f 20 5c 22 20 5c 22 | 49 66 20 79 61 20 67 6f |t? \" \"|If ya go|
|00002980| 74 20 28 20 5c 22 20 73 | 74 72 20 5c 22 20 29 20 |t ( \" s|tr \" ) |
|00002990| 79 61 20 62 65 74 74 61 | 20 7b 20 5c 22 20 5f 20 |ya betta| { \" _ |
|000029a0| 5c 22 20 7d 5c 22 29 29 | 0a 0a 77 68 65 72 65 20 |\" }\"))|..where |
|000029b0| 60 73 68 2d 75 6e 74 69 | 6c 27 20 6f 72 20 60 73 |`sh-unti|l' or `s|
|000029c0| 68 2d 69 66 27 20 68 61 | 76 65 20 62 65 65 6e 20 |h-if' ha|ve been |
|000029d0| 6f 72 20 77 69 6c 6c 20 | 62 65 20 64 65 66 69 6e |or will |be defin|
|000029e0| 65 64 20 62 79 20 60 64 | 65 66 69 6e 65 2d 73 68 |ed by `d|efine-sh|
|000029f0| 2d 73 6b 65 6c 65 74 6f | 6e 27 2e 0a 0a 54 68 65 |-skeleto|n'...The|
|00002a00| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 6f 6d 6d 61 | followi|ng comma|
|00002a10| 6e 64 73 20 61 72 65 20 | 61 76 61 69 6c 61 62 6c |nds are |availabl|
|00002a20| 65 2c 20 62 61 73 65 64 | 20 6f 6e 20 74 68 65 20 |e, based| on the |
|00002a30| 63 75 72 72 65 6e 74 20 | 73 68 65 6c 6c 27 73 20 |current |shell's |
|00002a40| 73 79 6e 74 61 78 3a 0a | 0a 5c 5c 5b 73 68 2d 63 |syntax:.|.\\[sh-c|
|00002a50| 61 73 65 5d 09 20 63 61 | 73 65 20 73 74 61 74 65 |ase]. ca|se state|
|00002a60| 6d 65 6e 74 0a 5c 5c 5b | 73 68 2d 66 6f 72 5d 09 |ment.\\[|sh-for].|
|00002a70| 20 66 6f 72 20 6c 6f 6f | 70 0a 5c 5c 5b 73 68 2d | for loo|p.\\[sh-|
|00002a80| 66 75 6e 63 74 69 6f 6e | 5d 09 20 66 75 6e 63 74 |function|]. funct|
|00002a90| 69 6f 6e 20 64 65 66 69 | 6e 69 74 69 6f 6e 0a 5c |ion defi|nition.\|
|00002aa0| 5c 5b 73 68 2d 69 66 5d | 09 20 69 66 20 73 74 61 |\[sh-if]|. if sta|
|00002ab0| 74 65 6d 65 6e 74 0a 5c | 5c 5b 73 68 2d 69 6e 64 |tement.\|\[sh-ind|
|00002ac0| 65 78 65 64 2d 6c 6f 6f | 70 5d 09 20 69 6e 64 65 |exed-loo|p]. inde|
|00002ad0| 78 65 64 20 6c 6f 6f 70 | 20 66 72 6f 6d 20 31 20 |xed loop| from 1 |
|00002ae0| 74 6f 20 6e 0a 5c 5c 5b | 73 68 2d 73 65 6c 65 63 |to n.\\[|sh-selec|
|00002af0| 74 5d 09 20 73 65 6c 65 | 63 74 20 73 74 61 74 65 |t]. sele|ct state|
|00002b00| 6d 65 6e 74 0a 5c 5c 5b | 73 68 2d 75 6e 74 69 6c |ment.\\[|sh-until|
|00002b10| 5d 09 20 75 6e 74 69 6c | 20 6c 6f 6f 70 0a 5c 5c |]. until| loop.\\|
|00002b20| 5b 73 68 2d 77 68 69 6c | 65 5d 09 20 77 68 69 6c |[sh-whil|e]. whil|
|00002b30| 65 20 6c 6f 6f 70 0a 0a | 5c 5c 5b 62 61 63 6b 77 |e loop..|\\[backw|
|00002b40| 61 72 64 2d 64 65 6c 65 | 74 65 2d 63 68 61 72 2d |ard-dele|te-char-|
|00002b50| 75 6e 74 61 62 69 66 79 | 5d 09 20 44 65 6c 65 74 |untabify|]. Delet|
|00002b60| 65 20 62 61 63 6b 77 61 | 72 64 20 6f 6e 65 20 70 |e backwa|rd one p|
|00002b70| 6f 73 69 74 69 6f 6e 2c | 20 65 76 65 6e 20 69 66 |osition,| even if|
|00002b80| 20 69 74 20 77 61 73 20 | 61 20 74 61 62 2e 0a 5c | it was |a tab..\|
|00002b90| 5c 5b 73 68 2d 6e 65 77 | 6c 69 6e 65 2d 61 6e 64 |\[sh-new|line-and|
|00002ba0| 2d 69 6e 64 65 6e 74 5d | 09 20 44 65 6c 65 74 65 |-indent]|. Delete|
|00002bb0| 20 75 6e 71 75 6f 74 65 | 64 20 73 70 61 63 65 20 | unquote|d space |
|00002bc0| 61 6e 64 20 69 6e 64 65 | 6e 74 20 6e 65 77 20 6c |and inde|nt new l|
|00002bd0| 69 6e 65 20 73 61 6d 65 | 20 61 73 20 74 68 69 73 |ine same| as this|
|00002be0| 20 6f 6e 65 2e 0a 5c 5c | 5b 73 68 2d 65 6e 64 2d | one..\\|[sh-end-|
|00002bf0| 6f 66 2d 63 6f 6d 6d 61 | 6e 64 5d 09 20 47 6f 20 |of-comma|nd]. Go |
|00002c00| 74 6f 20 65 6e 64 20 6f | 66 20 73 75 63 63 65 73 |to end o|f succes|
|00002c10| 73 69 76 65 20 63 6f 6d | 6d 61 6e 64 73 2e 0a 5c |sive com|mands..\|
|00002c20| 5c 5b 73 68 2d 62 65 67 | 69 6e 6e 69 6e 67 2d 6f |\[sh-beg|inning-o|
|00002c30| 66 2d 63 6f 6d 6d 61 6e | 64 5d 09 20 47 6f 20 74 |f-comman|d]. Go t|
|00002c40| 6f 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 73 |o beginn|ing of s|
|00002c50| 75 63 63 65 73 73 69 76 | 65 20 63 6f 6d 6d 61 6e |uccessiv|e comman|
|00002c60| 64 73 2e 0a 5c 5c 5b 73 | 68 2d 73 65 74 2d 73 68 |ds..\\[s|h-set-sh|
|00002c70| 65 6c 6c 5d 09 20 53 65 | 74 20 74 68 69 73 20 62 |ell]. Se|t this b|
|00002c80| 75 66 66 65 72 27 73 20 | 73 68 65 6c 6c 2c 20 61 |uffer's |shell, a|
|00002c90| 6e 64 20 6d 61 79 62 65 | 20 69 74 73 20 6d 61 67 |nd maybe| its mag|
|00002ca0| 69 63 20 6e 75 6d 62 65 | 72 2e 0a 5c 5c 5b 73 68 |ic numbe|r..\\[sh|
|00002cb0| 2d 6d 61 6e 75 61 6c 2d | 65 6e 74 72 79 5d 09 20 |-manual-|entry]. |
|00002cc0| 44 69 73 70 6c 61 79 20 | 74 68 65 20 55 6e 69 78 |Display |the Unix|
|00002cd0| 20 6d 61 6e 75 61 6c 20 | 65 6e 74 72 79 20 66 6f | manual |entry fo|
|00002ce0| 72 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 63 6f |r the cu|rrent co|
|00002cf0| 6d 6d 61 6e 64 20 6f 72 | 20 73 68 65 6c 6c 2e 0a |mmand or| shell..|
|00002d00| 0a 5c 5c 5b 73 68 2d 71 | 75 65 72 79 2d 66 6f 72 |.\\[sh-q|uery-for|
|00002d10| 2d 76 61 72 69 61 62 6c | 65 5d 09 20 55 6e 6c 65 |-variabl|e]. Unle|
|00002d20| 73 73 20 71 75 6f 74 65 | 64 20 77 69 74 68 20 5c |ss quote|d with \|
|00002d30| 5c 2c 20 71 75 65 72 79 | 20 66 6f 72 20 61 20 76 |\, query| for a v|
|00002d40| 61 72 69 61 62 6c 65 20 | 77 69 74 68 20 63 6f 6d |ariable |with com|
|00002d50| 70 6c 65 74 69 6f 6e 73 | 20 6f 66 66 65 72 65 64 |pletions| offered|
|00002d60| 2e 0a 5c 5c 5b 73 68 2d | 6d 61 79 62 65 2d 68 65 |..\\[sh-|maybe-he|
|00002d70| 72 65 2d 64 6f 63 75 6d | 65 6e 74 5d 09 20 57 69 |re-docum|ent]. Wi|
|00002d80| 74 68 6f 75 74 20 70 72 | 65 66 69 78 2c 20 66 6f |thout pr|efix, fo|
|00002d90| 6c 6c 6f 77 69 6e 67 20 | 61 6e 20 75 6e 71 75 6f |llowing |an unquo|
|00002da0| 74 65 64 20 3c 20 69 6e | 73 65 72 74 73 20 68 65 |ted < in|serts he|
|00002db0| 72 65 20 64 6f 63 75 6d | 65 6e 74 2e 0a 7b 2c 20 |re docum|ent..{, |
|00002dc0| 28 2c 20 5b 2c 20 27 2c | 20 5c 22 2c 20 60 0a 09 |(, [, ',| \", `..|
|00002dd0| 55 6e 6c 65 73 73 20 71 | 75 6f 74 65 64 20 77 69 |Unless q|uoted wi|
|00002de0| 74 68 20 5c 5c 2c 20 69 | 6e 73 65 72 74 20 74 68 |th \\, i|nsert th|
|00002df0| 65 20 70 61 69 72 73 20 | 7b 7d 2c 20 28 29 2c 20 |e pairs |{}, (), |
|00002e00| 5b 5d 2c 20 6f 72 20 27 | 27 2c 20 5c 22 5c 22 2c |[], or '|', \"\",|
|00002e10| 20 60 60 2e 22 20 6e 69 | 6c 5d 29 0a 28 64 65 66 | ``." ni|l]).(def|
|00002e20| 61 6c 69 61 73 20 28 71 | 75 6f 74 65 20 73 68 65 |alias (q|uote she|
|00002e30| 6c 6c 2d 73 63 72 69 70 | 74 2d 6d 6f 64 65 29 20 |ll-scrip|t-mode) |
|00002e40| 28 71 75 6f 74 65 20 73 | 68 2d 6d 6f 64 65 29 29 |(quote s|h-mode))|
|00002e50| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 64 65 66 69 |.(defali|as 'defi|
|00002e60| 6e 65 2d 73 68 2d 73 6b | 65 6c 65 74 6f 6e 20 27 |ne-sh-sk|eleton '|
|00002e70| 28 6d 61 63 72 6f 20 2e | 20 23 5b 28 63 6f 6d 6d |(macro .| #[(comm|
|00002e80| 61 6e 64 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |and docu|mentatio|
|00002e90| 6e 20 26 72 65 73 74 20 | 64 65 66 69 6e 69 74 69 |n &rest |definiti|
|00002ea0| 6f 6e 73 29 20 22 08 3b | 84 0b 00 08 09 42 11 c2 |ons) ".;|.....B..|
|00002eb0| 10 c3 c4 21 88 c5 c6 c1 | c7 09 44 44 43 c8 c1 c9 |...!....|..DDC...|
|00002ec0| ca cb cc c7 0e 0d 44 ce | 42 42 45 cf c7 0e 0d 44 |......D.|BBE....D|
|00002ed0| d0 d1 d2 cc c7 0e 0d 44 | d3 42 42 d4 42 42 42 46 |.......D|.BB.BBBF|
|00002ee0| 45 d5 42 42 42 45 cf c7 | 0e 0d 44 d6 c7 cc c7 0e |E.BBBE..|..D.....|
|00002ef0| 0d 44 d7 42 42 44 46 d8 | 0e 0d d9 08 da db c9 cc |.D.BBDF.|........|
|00002f00| c7 0e 0d 44 dc 42 42 dd | de c7 0e 0d 44 df 42 42 |...D.BB.|....D.BB|
|00002f10| 42 45 44 af 06 46 87 22 | 20 5b 64 6f 63 75 6d 65 |BED..F."| [docume|
|00002f20| 6e 74 61 74 69 6f 6e 20 | 64 65 66 69 6e 69 74 69 |ntation |definiti|
|00002f30| 6f 6e 73 20 22 22 20 72 | 65 71 75 69 72 65 20 62 |ons "" r|equire b|
|00002f40| 61 63 6b 71 75 6f 74 65 | 20 70 72 6f 67 6e 20 6c |ackquote| progn l|
|00002f50| 65 74 20 71 75 6f 74 65 | 20 77 68 69 6c 65 20 6f |et quote| while o|
|00002f60| 72 20 61 6e 64 20 28 6e | 6f 74 20 28 69 66 20 28 |r and (n|ot (if (|
|00002f70| 62 6f 75 6e 64 70 20 28 | 71 75 6f 74 65 20 73 6b |boundp (|quote sk|
|00002f80| 65 6c 65 74 6f 6e 2d 64 | 65 62 75 67 29 29 20 73 |eleton-d|ebug)) s|
|00002f90| 6b 65 6c 65 74 6f 6e 2d | 64 65 62 75 67 29 29 20 |keleton-|debug)) |
|00002fa0| 67 65 74 20 63 6f 6d 6d | 61 6e 64 20 28 28 63 61 |get comm|and ((ca|
|00002fb0| 72 20 28 63 61 72 20 64 | 65 66 69 6e 69 74 69 6f |r (car d|efinitio|
|00002fc0| 6e 73 29 29 29 20 70 75 | 74 20 28 63 61 72 20 28 |ns))) pu|t (car (|
|00002fd0| 63 61 72 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 29 |car defi|nitions)|
|00002fe0| 29 20 69 66 20 28 73 79 | 6d 62 6f 6c 70 20 28 63 |) if (sy|mbolp (c|
|00002ff0| 64 72 20 28 63 61 72 20 | 64 65 66 69 6e 69 74 69 |dr (car |definiti|
|00003000| 6f 6e 73 29 29 29 20 28 | 28 63 64 72 20 28 63 61 |ons))) (|(cdr (ca|
|00003010| 72 20 64 65 66 69 6e 69 | 74 69 6f 6e 73 29 29 29 |r defini|tions)))|
|00003020| 20 28 28 63 64 72 20 28 | 63 61 72 20 64 65 66 69 | ((cdr (|car defi|
|00003030| 6e 69 74 69 6f 6e 73 29 | 29 29 20 28 28 73 65 74 |nitions)|)) ((set|
|00003040| 71 20 64 65 66 69 6e 69 | 74 69 6f 6e 73 20 28 63 |q defini|tions (c|
|00003050| 64 72 20 64 65 66 69 6e | 69 74 69 6f 6e 73 29 29 |dr defin|itions))|
|00003060| 29 20 28 71 75 6f 74 65 | 20 6d 65 6e 75 2d 65 6e |) (quote| menu-en|
|00003070| 61 62 6c 65 29 20 28 73 | 68 2d 73 68 65 6c 6c 29 |able) (s|h-shell)|
|00003080| 20 64 65 66 75 6e 20 6e | 69 6c 20 28 69 6e 74 65 | defun n|il (inte|
|00003090| 72 61 63 74 69 76 65 29 | 20 73 6b 65 6c 65 74 6f |ractive)| skeleto|
|000030a0| 6e 2d 69 6e 73 65 72 74 | 20 28 73 68 2d 73 68 65 |n-insert| (sh-she|
|000030b0| 6c 6c 29 20 65 72 72 6f | 72 20 22 25 73 20 73 74 |ll) erro|r "%s st|
|000030c0| 61 74 65 6d 65 6e 74 20 | 73 79 6e 74 61 78 20 6e |atement |syntax n|
|000030d0| 6f 74 20 64 65 66 69 6e | 65 64 20 66 6f 72 20 73 |ot defin|ed for s|
|000030e0| 68 65 6c 6c 20 25 73 2e | 22 20 28 73 68 2d 73 68 |hell %s.|" (sh-sh|
|000030f0| 65 6c 6c 29 5d 20 31 35 | 20 22 5c 0a 44 65 66 69 |ell)] 15| "\.Defi|
|00003100| 6e 65 20 43 4f 4d 4d 41 | 4e 44 20 77 69 74 68 20 |ne COMMA|ND with |
|00003110| 5b 44 4f 43 53 54 52 49 | 4e 47 5d 20 74 6f 20 69 |[DOCSTRI|NG] to i|
|00003120| 6e 73 65 72 74 20 73 74 | 61 74 65 6d 65 6e 74 73 |nsert st|atements|
|00003130| 20 61 73 20 69 6e 20 44 | 45 46 49 4e 49 54 49 4f | as in D|EFINITIO|
|00003140| 4e 20 2e 2e 2e 0a 50 72 | 69 6f 72 20 64 65 66 69 |N ....Pr|ior defi|
|00003150| 6e 69 74 69 6f 6e 73 20 | 28 65 2e 67 2e 20 66 72 |nitions |(e.g. fr|
|00003160| 6f 6d 20 7e 2f 2e 65 6d | 61 63 73 29 20 61 72 65 |om ~/.em|acs) are|
|00003170| 20 6d 61 69 6e 74 61 69 | 6e 65 64 2e 0a 45 61 63 | maintai|ned..Eac|
|00003180| 68 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 69 73 20 |h defini|tion is |
|00003190| 62 75 69 6c 74 20 75 70 | 20 61 73 20 28 53 48 45 |built up| as (SHE|
|000031a0| 4c 4c 20 50 52 4f 4d 50 | 54 20 45 4c 45 4d 45 4e |LL PROMP|T ELEMEN|
|000031b0| 54 20 2e 2e 2e 29 2e 20 | 20 41 6c 74 65 72 6e 61 |T ...). | Alterna|
|000031c0| 74 65 6c 79 0a 61 20 73 | 79 6e 6f 6e 79 6d 20 64 |tely.a s|ynonym d|
|000031d0| 65 66 69 6e 69 74 69 6f | 6e 20 63 61 6e 20 62 65 |efinitio|n can be|
|000031e0| 20 28 53 48 45 4c 4c 20 | 2e 20 50 52 45 56 49 4f | (SHELL |. PREVIO|
|000031f0| 55 53 4c 59 2d 44 45 46 | 49 4e 45 44 2d 53 48 45 |USLY-DEF|INED-SHE|
|00003200| 4c 4c 29 2e 0a 0a 46 6f | 72 20 74 68 65 20 6d 65 |LL)...Fo|r the me|
|00003210| 61 6e 69 6e 67 20 6f 66 | 20 28 50 52 4f 4d 50 54 |aning of| (PROMPT|
|00003220| 20 45 4c 45 4d 45 4e 54 | 20 2e 2e 2e 29 20 73 65 | ELEMENT| ...) se|
|00003230| 65 20 60 73 6b 65 6c 65 | 74 6f 6e 2d 69 6e 73 65 |e `skele|ton-inse|
|00003240| 72 74 27 2e 0a 45 61 63 | 68 20 44 45 46 49 4e 49 |rt'..Eac|h DEFINI|
|00003250| 54 49 4f 4e 20 69 73 20 | 61 63 74 75 61 6c 6c 79 |TION is |actually|
|00003260| 20 73 74 6f 72 65 64 20 | 61 73 0a 09 28 70 75 74 | stored |as..(put|
|00003270| 20 43 4f 4d 4d 41 4e 44 | 20 53 48 45 4c 4c 20 28 | COMMAND| SHELL (|
|00003280| 50 52 4f 4d 50 54 20 45 | 4c 45 4d 45 4e 54 20 2e |PROMPT E|LEMENT .|
|00003290| 2e 2e 29 29 2c 0a 77 68 | 69 63 68 20 79 6f 75 20 |..)),.wh|ich you |
|000032a0| 63 61 6e 20 61 6c 73 6f | 20 64 6f 20 79 6f 75 72 |can also| do your|
|000032b0| 73 65 6c 66 2e 22 5d 29 | 29 0a 28 64 65 66 61 6c |self."])|).(defal|
|000032c0| 69 61 73 20 27 73 68 2d | 69 6e 64 65 6e 74 2d 6c |ias 'sh-|indent-l|
|000032d0| 69 6e 65 20 23 5b 6e 69 | 6c 20 22 8a c0 c1 21 88 |ine #[ni|l "...!.|
|000032e0| c2 20 88 c3 5c 66 21 83 | 12 00 c5 82 13 00 69 29 |. ..\f!.|......i)|
|000032f0| 1e 06 8a 0e 07 c8 3d 83 | 23 00 0e 06 82 53 00 69 |......=.|#....S.i|
|00003300| c2 20 88 69 57 83 39 00 | 6c 83 35 00 0e 06 82 53 |. .iW.9.|l.5....S|
|00003310| 00 c5 82 53 00 6c 83 4b | 00 0e 06 69 0e 09 a5 54 |...S.l.K|...i...T|
|00003320| 0e 09 5f 5d 82 53 00 69 | 0e 09 a5 54 0e 09 5f 6a |.._].S.i|...T.._j|
|00003330| 88 29 69 ca 20 57 85 60 | 00 cb cc 77 29 87 22 20 |.)i. W.`|...w)." |
|00003340| 5b 6c 69 6e 65 2d 6d 6f | 76 65 20 2d 31 20 62 61 |[line-mo|ve -1 ba|
|00003350| 63 6b 2d 74 6f 2d 69 6e | 64 65 6e 74 61 74 69 6f |ck-to-in|dentatio|
|00003360| 6e 20 6c 6f 6f 6b 69 6e | 67 2d 61 74 20 63 6f 6d |n lookin|g-at com|
|00003370| 6d 65 6e 74 2d 73 74 61 | 72 74 2d 73 6b 69 70 20 |ment-sta|rt-skip |
|00003380| 30 20 70 72 65 76 69 6f | 75 73 20 74 68 69 73 2d |0 previo|us this-|
|00003390| 63 6f 6d 6d 61 6e 64 20 | 6e 65 77 6c 69 6e 65 2d |command |newline-|
|000033a0| 61 6e 64 2d 69 6e 64 65 | 6e 74 20 74 61 62 2d 77 |and-inde|nt tab-w|
|000033b0| 69 64 74 68 20 63 75 72 | 72 65 6e 74 2d 69 6e 64 |idth cur|rent-ind|
|000033c0| 65 6e 74 61 74 69 6f 6e | 20 22 20 09 22 20 6e 69 |entation| " ." ni|
|000033d0| 6c 5d 20 33 20 22 5c 0a | 49 6e 64 65 6e 74 20 61 |l] 3 "\.|Indent a|
|000033e0| 73 20 66 61 72 20 61 73 | 20 70 72 65 63 65 64 69 |s far as| precedi|
|000033f0| 6e 67 20 6c 69 6e 65 2c | 20 74 68 65 6e 20 62 79 |ng line,| then by|
|00003400| 20 73 74 65 70 73 20 6f | 66 20 60 74 61 62 2d 77 | steps o|f `tab-w|
|00003410| 69 64 74 68 27 2e 0a 49 | 66 20 70 72 65 76 69 6f |idth'..I|f previo|
|00003420| 75 73 20 6c 69 6e 65 20 | 73 74 61 72 74 73 20 77 |us line |starts w|
|00003430| 69 74 68 20 61 20 63 6f | 6d 6d 65 6e 74 2c 20 69 |ith a co|mment, i|
|00003440| 74 27 73 20 63 6f 6e 73 | 69 64 65 72 65 64 20 65 |t's cons|idered e|
|00003450| 6d 70 74 79 2e 22 20 6e | 69 6c 5d 29 0a 28 64 65 |mpty." n|il]).(de|
|00003460| 66 61 6c 69 61 73 20 27 | 73 68 2d 72 65 6d 65 6d |falias '|sh-remem|
|00003470| 62 65 72 2d 76 61 72 69 | 61 62 6c 65 20 23 5b 28 |ber-vari|able #[(|
|00003480| 76 61 72 29 20 22 08 47 | 09 57 84 13 00 c2 08 0b |var) ".G|.W......|
|00003490| 5c 22 84 13 00 08 43 0b | 42 13 08 87 22 20 5b 76 |\"....C.|B..." [v|
|000034a0| 61 72 20 73 68 2d 72 65 | 6d 65 6d 62 65 72 2d 76 |ar sh-re|member-v|
|000034b0| 61 72 69 61 62 6c 65 2d | 6d 69 6e 20 61 73 73 6f |ariable-|min asso|
|000034c0| 63 20 73 68 2d 76 61 72 | 69 61 62 6c 65 73 5d 20 |c sh-var|iables] |
|000034d0| 33 20 22 5c 0a 4d 61 6b | 65 20 56 41 52 49 41 42 |3 "\.Mak|e VARIAB|
|000034e0| 4c 45 20 61 76 61 69 6c | 61 62 6c 65 20 66 6f 72 |LE avail|able for|
|000034f0| 20 66 75 74 75 72 65 20 | 63 6f 6d 70 6c 65 74 69 | future |completi|
|00003500| 6e 67 20 72 65 61 64 73 | 20 69 6e 20 74 68 69 73 |ng reads| in this|
|00003510| 20 62 75 66 66 65 72 2e | 22 5d 29 0a 28 62 79 74 | buffer.|"]).(byt|
|00003520| 65 2d 63 6f 64 65 20 22 | c0 c1 21 83 20 00 09 89 |e-code "|..!. ...|
|00003530| 1a 83 1f 00 c3 5c 6e 40 | c4 c5 c6 5c 6e 40 5c 22 |.....\n@|...\n@\"|
|00003540| 4f 21 88 5c 6e 41 89 12 | 84 5c 66 00 29 c0 87 22 |O!.\nA..|.\f.).."|
|00003550| 20 5b 62 6f 75 6e 64 70 | 20 70 72 6f 63 65 73 73 | [boundp| process|
|00003560| 2d 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 6c 20 73 |-environ|ment l s|
|00003570| 68 2d 72 65 6d 65 6d 62 | 65 72 2d 76 61 72 69 61 |h-rememb|er-varia|
|00003580| 62 6c 65 20 30 20 73 74 | 72 69 6e 67 2d 6d 61 74 |ble 0 st|ring-mat|
|00003590| 63 68 20 22 3d 22 5d 20 | 37 29 0a 28 64 65 66 61 |ch "="] |7).(defa|
|000035a0| 6c 69 61 73 20 27 73 68 | 2d 71 75 6f 74 65 64 2d |lias 'sh|-quoted-|
|000035b0| 70 20 23 5b 6e 69 6c 20 | 22 60 8a c0 c1 78 88 60 |p #[nil |"`...x.`|
|000035c0| 29 5a c2 a6 c3 3d 87 22 | 20 5b 22 5c 5c 5c 5c 22 |)Z...=."| ["\\\\"|
|000035d0| 20 6e 69 6c 20 32 20 31 | 5d 20 33 20 22 5c 0a 49 | nil 2 1|] 3 "\.I|
|000035e0| 73 20 70 6f 69 6e 74 20 | 70 72 65 63 65 64 65 64 |s point |preceded|
|000035f0| 20 62 79 20 61 6e 20 6f | 64 64 20 6e 75 6d 62 65 | by an o|dd numbe|
|00003600| 72 20 6f 66 20 62 61 63 | 6b 73 6c 61 73 68 65 73 |r of bac|kslashes|
|00003610| 3f 22 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |?"]).(de|falias '|
|00003620| 73 68 2d 65 78 65 63 75 | 74 61 62 6c 65 20 23 5b |sh-execu|table #[|
|00003630| 28 63 6f 6d 6d 61 6e 64 | 29 20 22 60 c0 20 c1 89 |(command|) "`. ..|
|00003640| 1a 1b 18 1c c5 c6 c1 c7 | c1 c8 c9 0e 5c 6e 50 26 |........|....\nP&|
|00003650| 06 88 60 5c 66 62 88 14 | cb 0e 5c 66 21 85 2e 00 |..`\fb..|..\f!...|
|00003660| 5c 66 cd 95 3d 85 2e 00 | ce 94 ce 95 7b 60 5c 66 |\f..=...|....{`\f|
|00003670| 7c 88 cf 08 21 88 2c 87 | 22 20 5b 62 75 66 66 65 ||...!.,.|" [buffe|
|00003680| 72 2d 6d 6f 64 69 66 69 | 65 64 2d 70 20 6e 69 6c |r-modifi|ed-p nil|
|00003690| 20 61 66 74 65 72 2d 63 | 68 61 6e 67 65 2d 66 75 | after-c|hange-fu|
|000036a0| 6e 63 74 69 6f 6e 20 62 | 75 66 66 65 72 2d 72 65 |nction b|uffer-re|
|000036b0| 61 64 2d 6f 6e 6c 79 20 | 70 6f 69 6e 74 20 63 61 |ad-only |point ca|
|000036c0| 6c 6c 2d 70 72 6f 63 65 | 73 73 20 22 73 68 22 20 |ll-proce|ss "sh" |
|000036d0| 74 20 22 2d 63 22 20 22 | 74 79 70 65 20 22 20 63 |t "-c" "|type " c|
|000036e0| 6f 6d 6d 61 6e 64 20 6c | 6f 6f 6b 69 6e 67 2d 61 |ommand l|ooking-a|
|000036f0| 74 20 73 68 2d 65 78 65 | 63 75 74 61 62 6c 65 20 |t sh-exe|cutable |
|00003700| 30 20 31 20 73 65 74 2d | 62 75 66 66 65 72 2d 6d |0 1 set-|buffer-m|
|00003710| 6f 64 69 66 69 65 64 2d | 70 5d 20 38 20 22 5c 0a |odified-|p] 8 "\.|
|00003720| 49 66 20 43 4f 4d 4d 41 | 4e 44 20 69 73 20 61 6e |If COMMA|ND is an|
|00003730| 20 65 78 65 63 75 74 61 | 62 6c 65 20 69 6e 20 24 | executa|ble in $|
|00003740| 50 41 54 48 20 69 74 73 | 20 66 75 6c 6c 20 6e 61 |PATH its| full na|
|00003750| 6d 65 20 69 73 20 72 65 | 74 75 72 6e 65 64 2e 20 |me is re|turned. |
|00003760| 20 45 6c 73 65 20 6e 69 | 6c 2e 22 5d 29 0a 28 64 | Else ni|l."]).(d|
|00003770| 65 66 61 6c 69 61 73 20 | 27 73 68 2d 63 68 6d 6f |efalias |'sh-chmo|
|00003780| 64 20 23 5b 6e 69 6c 20 | 22 08 85 11 00 c1 5c 6e |d #[nil |".....\n|
|00003790| 21 86 11 00 c3 c4 08 c5 | 5c 6e 52 21 87 22 20 5b |!.......|\nR!." [|
|000037a0| 73 68 2d 63 68 6d 6f 64 | 2d 61 72 67 75 6d 65 6e |sh-chmod|-argumen|
|000037b0| 74 20 66 69 6c 65 2d 65 | 78 65 63 75 74 61 62 6c |t file-e|xecutabl|
|000037c0| 65 2d 70 20 62 75 66 66 | 65 72 2d 66 69 6c 65 2d |e-p buff|er-file-|
|000037d0| 6e 61 6d 65 20 73 68 65 | 6c 6c 2d 63 6f 6d 6d 61 |name she|ll-comma|
|000037e0| 6e 64 20 22 63 68 6d 6f | 64 20 22 20 22 20 22 5d |nd "chmo|d " " "]|
|000037f0| 20 35 20 22 5c 0a 54 68 | 69 73 20 67 65 74 73 20 | 5 "\.Th|is gets |
|00003800| 63 61 6c 6c 65 64 20 61 | 66 74 65 72 20 73 61 76 |called a|fter sav|
|00003810| 69 6e 67 20 61 20 66 69 | 6c 65 20 74 6f 20 61 73 |ing a fi|le to as|
|00003820| 73 75 72 65 20 74 68 61 | 74 20 69 74 20 62 65 20 |sure tha|t it be |
|00003830| 65 78 65 63 75 74 61 62 | 6c 65 2e 0a 59 6f 75 20 |executab|le..You |
|00003840| 63 61 6e 20 73 65 74 20 | 74 68 65 20 61 62 73 6f |can set |the abso|
|00003850| 6c 75 74 65 20 6f 72 20 | 72 65 6c 61 74 69 76 65 |lute or |relative|
|00003860| 20 6d 6f 64 65 20 77 69 | 74 68 20 60 73 68 2d 63 | mode wi|th `sh-c|
|00003870| 68 6d 6f 64 2d 61 72 67 | 75 6d 65 6e 74 27 2e 22 |hmod-arg|ument'."|
|00003880| 5d 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |]).(byte|-code ".|
|00003890| 19 c2 c3 21 83 5c 66 00 | 0b 84 14 00 c4 09 40 40 |...!.\f.|......@@|
|000038a0| 4e 84 2d 00 c5 c4 09 40 | 40 09 40 41 39 83 28 00 |N.-....@|@.@A9.(.|
|000038b0| c4 09 40 41 4e 82 2b 00 | 09 40 41 23 88 09 41 89 |..@AN.+.|.@A#..A.|
|000038c0| 11 84 02 00 29 c5 c4 c6 | c7 23 87 22 20 5b 28 28 |....)...|.#." [((|
|000038d0| 73 68 20 22 65 78 70 72 | 65 73 73 69 6f 6e 3a 20 |sh "expr|ession: |
|000038e0| 22 20 22 63 61 73 65 20 | 22 20 73 74 72 20 22 20 |" "case |" str " |
|000038f0| 69 6e 22 20 6e 20 3e 20 | 28 72 65 61 64 2d 73 74 |in" n > |(read-st|
|00003900| 72 69 6e 67 20 22 70 61 | 74 74 65 72 6e 3a 20 22 |ring "pa|ttern: "|
|00003910| 29 20 34 31 20 6e 20 3e | 20 5f 20 6e 20 22 3b 3b |) 41 n >| _ n ";;|
|00003920| 22 20 6e 20 28 22 6f 74 | 68 65 72 20 70 61 74 74 |" n ("ot|her patt|
|00003930| 65 72 6e 2c 20 25 73 3a | 20 22 20 3c 20 73 74 72 |ern, %s:| " < str|
|00003940| 20 34 31 20 6e 20 3e 20 | 6e 20 22 3b 3b 22 20 6e | 41 n > |n ";;" n|
|00003950| 29 20 3c 20 22 2a 29 22 | 20 6e 20 3e 20 6e 20 72 |) < "*)"| n > n r|
|00003960| 65 73 75 6d 65 3a 20 3c | 20 3c 20 22 65 73 61 63 |esume: <| < "esac|
|00003970| 22 29 20 28 6b 73 68 20 | 2e 20 73 68 29 20 28 62 |") (ksh |. sh) (b|
|00003980| 61 73 68 20 2e 20 73 68 | 29 20 28 63 73 68 20 22 |ash . sh|) (csh "|
|00003990| 65 78 70 72 65 73 73 69 | 6f 6e 3a 20 22 20 22 73 |expressi|on: " "s|
|000039a0| 77 69 74 63 68 28 20 22 | 20 73 74 72 20 22 20 29 |witch( "| str " )|
|000039b0| 22 20 6e 20 3e 20 22 63 | 61 73 65 20 22 20 28 72 |" n > "c|ase " (r|
|000039c0| 65 61 64 2d 73 74 72 69 | 6e 67 20 22 70 61 74 74 |ead-stri|ng "patt|
|000039d0| 65 72 6e 3a 20 22 29 20 | 35 38 20 6e 20 3e 20 5f |ern: ") |58 n > _|
|000039e0| 20 6e 20 22 62 72 65 61 | 6b 73 77 22 20 6e 20 28 | n "brea|ksw" n (|
|000039f0| 22 6f 74 68 65 72 20 70 | 61 74 74 65 72 6e 2c 20 |"other p|attern, |
|00003a00| 25 73 3a 20 22 20 3c 20 | 22 63 61 73 65 20 22 20 |%s: " < |"case " |
|00003a10| 73 74 72 20 35 38 20 6e | 20 3e 20 6e 20 22 62 72 |str 58 n| > n "br|
|00003a20| 65 61 6b 73 77 22 20 6e | 29 20 3c 20 22 64 65 66 |eaksw" n|) < "def|
|00003a30| 61 75 6c 74 3a 22 20 6e | 20 3e 20 6e 20 72 65 73 |ault:" n| > n res|
|00003a40| 75 6d 65 3a 20 3c 20 3c | 20 22 65 6e 64 73 77 22 |ume: < <| "endsw"|
|00003a50| 29 20 28 74 63 73 68 20 | 2e 20 63 73 68 29 29 20 |) (tcsh |. csh)) |
|00003a60| 64 65 66 69 6e 69 74 69 | 6f 6e 73 20 62 6f 75 6e |definiti|ons boun|
|00003a70| 64 70 20 73 6b 65 6c 65 | 74 6f 6e 2d 64 65 62 75 |dp skele|ton-debu|
|00003a80| 67 20 73 68 2d 63 61 73 | 65 20 70 75 74 20 6d 65 |g sh-cas|e put me|
|00003a90| 6e 75 2d 65 6e 61 62 6c | 65 20 28 67 65 74 20 28 |nu-enabl|e (get (|
|00003aa0| 71 75 6f 74 65 20 73 68 | 2d 63 61 73 65 29 20 73 |quote sh|-case) s|
|00003ab0| 68 2d 73 68 65 6c 6c 29 | 5d 20 36 29 0a 28 64 65 |h-shell)|] 6).(de|
|00003ac0| 66 61 6c 69 61 73 20 27 | 73 68 2d 63 61 73 65 20 |falias '|sh-case |
|00003ad0| 23 5b 6e 69 6c 20 22 c0 | c1 5c 6e 4e 86 5c 66 00 |#[nil ".|.\nN.\f.|
|00003ae0| c3 c4 c1 5c 6e 23 21 87 | 22 20 5b 73 6b 65 6c 65 |...\n#!.|" [skele|
|00003af0| 74 6f 6e 2d 69 6e 73 65 | 72 74 20 73 68 2d 63 61 |ton-inse|rt sh-ca|
|00003b00| 73 65 20 73 68 2d 73 68 | 65 6c 6c 20 65 72 72 6f |se sh-sh|ell erro|
|00003b10| 72 20 22 25 73 20 73 74 | 61 74 65 6d 65 6e 74 20 |r "%s st|atement |
|00003b20| 73 79 6e 74 61 78 20 6e | 6f 74 20 64 65 66 69 6e |syntax n|ot defin|
|00003b30| 65 64 20 66 6f 72 20 73 | 68 65 6c 6c 20 25 73 2e |ed for s|hell %s.|
|00003b40| 22 5d 20 35 20 22 5c 0a | 49 6e 73 65 72 74 20 61 |"] 5 "\.|Insert a|
|00003b50| 20 63 61 73 65 2f 73 77 | 69 74 63 68 20 73 74 61 | case/sw|itch sta|
|00003b60| 74 65 6d 65 6e 74 20 69 | 6e 20 74 68 65 20 63 75 |tement i|n the cu|
|00003b70| 72 72 65 6e 74 20 73 68 | 65 6c 6c 27 73 20 73 79 |rrent sh|ell's sy|
|00003b80| 6e 74 61 78 2e 22 20 6e | 69 6c 5d 29 0a 28 62 79 |ntax." n|il]).(by|
|00003b90| 74 65 2d 63 6f 64 65 20 | 22 c0 19 c2 c3 21 83 5c |te-code |"....!.\|
|00003ba0| 66 00 0b 84 14 00 c4 09 | 40 40 4e 84 2d 00 c5 c4 |f.......|@@N.-...|
|00003bb0| 09 40 40 09 40 41 39 83 | 28 00 c4 09 40 41 4e 82 |.@@.@A9.|(...@AN.|
|00003bc0| 2b 00 09 40 41 23 88 09 | 41 89 11 84 02 00 29 c5 |+..@A#..|A.....).|
|00003bd0| c4 c6 c7 23 87 22 20 5b | 28 28 73 68 20 22 49 6e |...#." [|((sh "In|
|00003be0| 64 65 78 20 76 61 72 69 | 61 62 6c 65 3a 20 22 20 |dex vari|able: " |
|00003bf0| 22 66 6f 72 20 22 20 73 | 74 72 20 22 20 69 6e 20 |"for " s|tr " in |
|00003c00| 22 20 5f 20 22 3b 20 64 | 6f 22 20 6e 20 3e 20 33 |" _ "; d|o" n > 3|
|00003c10| 36 20 28 73 68 2d 72 65 | 6d 65 6d 62 65 72 2d 76 |6 (sh-re|member-v|
|00003c20| 61 72 69 61 62 6c 65 20 | 73 74 72 29 20 6e 20 3c |ariable |str) n <|
|00003c30| 20 22 64 6f 6e 65 22 29 | 20 28 6b 73 68 20 2e 20 | "done")| (ksh . |
|00003c40| 73 68 29 20 28 62 61 73 | 68 20 2e 20 73 68 29 20 |sh) (bas|h . sh) |
|00003c50| 28 63 73 68 20 22 49 6e | 64 65 78 20 76 61 72 69 |(csh "In|dex vari|
|00003c60| 61 62 6c 65 3a 20 22 20 | 22 66 6f 72 65 61 63 68 |able: " |"foreach|
|00003c70| 20 22 20 73 74 72 20 22 | 20 28 20 22 20 5f 20 22 | " str "| ( " _ "|
|00003c80| 20 29 22 20 6e 20 3e 20 | 33 36 20 28 73 68 2d 72 | )" n > |36 (sh-r|
|00003c90| 65 6d 65 6d 62 65 72 2d | 76 61 72 69 61 62 6c 65 |emember-|variable|
|00003ca0| 20 73 74 72 29 20 6e 20 | 3c 20 22 65 6e 64 22 29 | str) n |< "end")|
|00003cb0| 20 28 74 63 73 68 20 2e | 20 63 73 68 29 29 20 64 | (tcsh .| csh)) d|
|00003cc0| 65 66 69 6e 69 74 69 6f | 6e 73 20 62 6f 75 6e 64 |efinitio|ns bound|
|00003cd0| 70 20 73 6b 65 6c 65 74 | 6f 6e 2d 64 65 62 75 67 |p skelet|on-debug|
|00003ce0| 20 73 68 2d 66 6f 72 20 | 70 75 74 20 6d 65 6e 75 | sh-for |put menu|
|00003cf0| 2d 65 6e 61 62 6c 65 20 | 28 67 65 74 20 28 71 75 |-enable |(get (qu|
|00003d00| 6f 74 65 20 73 68 2d 66 | 6f 72 29 20 73 68 2d 73 |ote sh-f|or) sh-s|
|00003d10| 68 65 6c 6c 29 5d 20 36 | 29 0a 28 64 65 66 61 6c |hell)] 6|).(defal|
|00003d20| 69 61 73 20 27 73 68 2d | 66 6f 72 20 23 5b 6e 69 |ias 'sh-|for #[ni|
|00003d30| 6c 20 22 c0 c1 5c 6e 4e | 86 5c 66 00 c3 c4 c1 5c |l "..\nN|.\f....\|
|00003d40| 6e 23 21 87 22 20 5b 73 | 6b 65 6c 65 74 6f 6e 2d |n#!." [s|keleton-|
|00003d50| 69 6e 73 65 72 74 20 73 | 68 2d 66 6f 72 20 73 68 |insert s|h-for sh|
|00003d60| 2d 73 68 65 6c 6c 20 65 | 72 72 6f 72 20 22 25 73 |-shell e|rror "%s|
|00003d70| 20 73 74 61 74 65 6d 65 | 6e 74 20 73 79 6e 74 61 | stateme|nt synta|
|00003d80| 78 20 6e 6f 74 20 64 65 | 66 69 6e 65 64 20 66 6f |x not de|fined fo|
|00003d90| 72 20 73 68 65 6c 6c 20 | 25 73 2e 22 5d 20 35 20 |r shell |%s."] 5 |
|00003da0| 22 5c 0a 49 6e 73 65 72 | 74 20 61 20 66 6f 72 20 |"\.Inser|t a for |
|00003db0| 6c 6f 6f 70 20 69 6e 20 | 74 68 65 20 63 75 72 72 |loop in |the curr|
|00003dc0| 65 6e 74 20 73 68 65 6c | 6c 27 73 20 73 79 6e 74 |ent shel|l's synt|
|00003dd0| 61 78 2e 22 20 6e 69 6c | 5d 29 0a 28 62 79 74 65 |ax." nil|]).(byte|
|00003de0| 2d 63 6f 64 65 20 22 c0 | 19 c2 c3 21 83 5c 66 00 |-code ".|...!.\f.|
|00003df0| 0b 84 14 00 c4 09 40 40 | 4e 84 2d 00 c5 c4 09 40 |......@@|N.-....@|
|00003e00| 40 09 40 41 39 83 28 00 | c4 09 40 41 4e 82 2b 00 |@.@A9.(.|..@AN.+.|
|00003e10| 09 40 41 23 88 09 41 89 | 11 84 02 00 29 c5 c4 c6 |.@A#..A.|....)...|
|00003e20| c7 23 87 22 20 5b 28 28 | 73 68 20 22 49 6e 64 65 |.#." [((|sh "Inde|
|00003e30| 78 20 76 61 72 69 61 62 | 6c 65 3a 20 22 20 73 74 |x variab|le: " st|
|00003e40| 72 20 22 3d 31 22 20 6e | 20 22 77 68 69 6c 65 20 |r "=1" n| "while |
|00003e50| 5b 20 24 22 20 73 74 72 | 20 22 20 2d 6c 65 20 22 |[ $" str| " -le "|
|00003e60| 20 28 72 65 61 64 2d 73 | 74 72 69 6e 67 20 22 75 | (read-s|tring "u|
|00003e70| 70 70 65 72 20 6c 69 6d | 69 74 3a 20 22 29 20 22 |pper lim|it: ") "|
|00003e80| 20 5d 3b 20 64 6f 22 20 | 6e 20 3e 20 5f 20 33 36 | ]; do" |n > _ 36|
|00003e90| 20 73 74 72 20 6e 20 73 | 74 72 20 36 31 20 28 73 | str n s|tr 61 (s|
|00003ea0| 68 2d 61 64 64 20 28 73 | 68 2d 72 65 6d 65 6d 62 |h-add (s|h-rememb|
|00003eb0| 65 72 2d 76 61 72 69 61 | 62 6c 65 20 73 74 72 29 |er-varia|ble str)|
|00003ec0| 20 31 29 20 6e 20 3c 20 | 22 64 6f 6e 65 22 29 20 | 1) n < |"done") |
|00003ed0| 28 6b 73 68 20 2e 20 73 | 68 29 20 28 62 61 73 68 |(ksh . s|h) (bash|
|00003ee0| 20 2e 20 73 68 29 20 28 | 63 73 68 20 22 49 6e 64 | . sh) (|csh "Ind|
|00003ef0| 65 78 20 76 61 72 69 61 | 62 6c 65 3a 20 22 20 22 |ex varia|ble: " "|
|00003f00| 40 20 22 20 73 74 72 20 | 22 20 3d 20 31 22 20 6e |@ " str |" = 1" n|
|00003f10| 20 22 77 68 69 6c 65 28 | 20 24 22 20 73 74 72 20 | "while(| $" str |
|00003f20| 22 20 3c 3d 20 22 20 28 | 72 65 61 64 2d 73 74 72 |" <= " (|read-str|
|00003f30| 69 6e 67 20 22 75 70 70 | 65 72 20 6c 69 6d 69 74 |ing "upp|er limit|
|00003f40| 3a 20 22 29 20 22 20 29 | 22 20 6e 20 3e 20 5f 20 |: ") " )|" n > _ |
|00003f50| 33 36 20 28 73 68 2d 72 | 65 6d 65 6d 62 65 72 2d |36 (sh-r|emember-|
|00003f60| 76 61 72 69 61 62 6c 65 | 20 73 74 72 29 20 6e 20 |variable| str) n |
|00003f70| 22 40 20 22 20 73 74 72 | 20 22 2b 2b 22 20 6e 20 |"@ " str| "++" n |
|00003f80| 3c 20 22 65 6e 64 22 29 | 20 28 74 63 73 68 20 2e |< "end")| (tcsh .|
|00003f90| 20 63 73 68 29 29 20 64 | 65 66 69 6e 69 74 69 6f | csh)) d|efinitio|
|00003fa0| 6e 73 20 62 6f 75 6e 64 | 70 20 73 6b 65 6c 65 74 |ns bound|p skelet|
|00003fb0| 6f 6e 2d 64 65 62 75 67 | 20 73 68 2d 69 6e 64 65 |on-debug| sh-inde|
|00003fc0| 78 65 64 2d 6c 6f 6f 70 | 20 70 75 74 20 6d 65 6e |xed-loop| put men|
|00003fd0| 75 2d 65 6e 61 62 6c 65 | 20 28 67 65 74 20 28 71 |u-enable| (get (q|
|00003fe0| 75 6f 74 65 20 73 68 2d | 69 6e 64 65 78 65 64 2d |uote sh-|indexed-|
|00003ff0| 6c 6f 6f 70 29 20 73 68 | 2d 73 68 65 6c 6c 29 5d |loop) sh|-shell)]|
|00004000| 20 36 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 | 6).(def|alias 's|
|00004010| 68 2d 69 6e 64 65 78 65 | 64 2d 6c 6f 6f 70 20 23 |h-indexe|d-loop #|
|00004020| 5b 6e 69 6c 20 22 c0 c1 | 5c 6e 4e 86 5c 66 00 c3 |[nil "..|\nN.\f..|
|00004030| c4 c1 5c 6e 23 21 87 22 | 20 5b 73 6b 65 6c 65 74 |..\n#!."| [skelet|
|00004040| 6f 6e 2d 69 6e 73 65 72 | 74 20 73 68 2d 69 6e 64 |on-inser|t sh-ind|
|00004050| 65 78 65 64 2d 6c 6f 6f | 70 20 73 68 2d 73 68 65 |exed-loo|p sh-she|
|00004060| 6c 6c 20 65 72 72 6f 72 | 20 22 25 73 20 73 74 61 |ll error| "%s sta|
|00004070| 74 65 6d 65 6e 74 20 73 | 79 6e 74 61 78 20 6e 6f |tement s|yntax no|
|00004080| 74 20 64 65 66 69 6e 65 | 64 20 66 6f 72 20 73 68 |t define|d for sh|
|00004090| 65 6c 6c 20 25 73 2e 22 | 5d 20 35 20 22 5c 0a 49 |ell %s."|] 5 "\.I|
|000040a0| 6e 73 65 72 74 20 61 6e | 20 69 6e 64 65 78 65 64 |nsert an| indexed|
|000040b0| 20 6c 6f 6f 70 20 66 72 | 6f 6d 20 31 20 74 6f 20 | loop fr|om 1 to |
|000040c0| 6e 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |n in the| current|
|000040d0| 20 73 68 65 6c 6c 27 73 | 20 73 79 6e 74 61 78 2e | shell's| syntax.|
|000040e0| 22 20 6e 69 6c 5d 29 0a | 28 64 65 66 61 6c 69 61 |" nil]).|(defalia|
|000040f0| 73 20 27 73 68 2d 61 64 | 64 20 23 5b 28 76 61 72 |s 'sh-ad|d #[(var|
|00004100| 20 64 65 6c 74 61 29 20 | 22 08 c1 57 83 5c 6e 00 | delta) |"..W.\n.|
|00004110| c2 82 0b 00 c3 c4 08 21 | 50 10 c5 0e 06 c7 9e c8 |.......!|P.......|
|00004120| 5c 22 87 22 20 5b 64 65 | 6c 74 61 20 30 20 22 20 |\"." [de|lta 0 " |
|00004130| 2d 20 22 20 22 20 2b 20 | 22 20 61 62 73 20 73 6b |- " " + |" abs sk|
|00004140| 65 6c 65 74 6f 6e 2d 69 | 6e 73 65 72 74 20 73 68 |eleton-i|nsert sh|
|00004150| 2d 73 68 65 6c 6c 20 28 | 28 73 68 20 22 60 65 78 |-shell (|(sh "`ex|
|00004160| 70 72 20 24 22 20 76 61 | 72 20 64 65 6c 74 61 20 |pr $" va|r delta |
|00004170| 22 60 22 29 20 28 6b 73 | 68 20 22 24 28 28 20 24 |"`") (ks|h "$(( $|
|00004180| 22 20 76 61 72 20 64 65 | 6c 74 61 20 22 20 29 29 |" var de|lta " ))|
|00004190| 22 29 20 28 62 61 73 68 | 20 22 24 5b 20 24 22 20 |") (bash| "$[ $" |
|000041a0| 76 61 72 20 64 65 6c 74 | 61 20 22 20 5d 22 29 29 |var delt|a " ]"))|
|000041b0| 20 74 5d 20 33 20 22 5c | 0a 49 6e 73 65 72 74 20 | t] 3 "\|.Insert |
|000041c0| 61 6e 20 61 64 64 69 74 | 69 6f 6e 20 6f 66 20 56 |an addit|ion of V|
|000041d0| 41 52 20 61 6e 64 20 70 | 72 65 66 69 78 20 44 45 |AR and p|refix DE|
|000041e0| 4c 54 41 20 66 6f 72 20 | 42 6f 75 72 6e 65 20 74 |LTA for |Bourne t|
|000041f0| 79 70 65 20 73 68 65 6c | 6c 73 2e 22 20 28 6c 69 |ype shel|ls." (li|
|00004200| 73 74 20 28 73 68 2d 72 | 65 6d 65 6d 62 65 72 2d |st (sh-r|emember-|
|00004210| 76 61 72 69 61 62 6c 65 | 20 28 63 6f 6d 70 6c 65 |variable| (comple|
|00004220| 74 69 6e 67 2d 72 65 61 | 64 20 22 56 61 72 69 61 |ting-rea|d "Varia|
|00004230| 62 6c 65 3a 20 22 20 73 | 68 2d 76 61 72 69 61 62 |ble: " s|h-variab|
|00004240| 6c 65 73 20 28 6c 61 6d | 62 64 61 20 28 65 6c 65 |les (lam|bda (ele|
|00004250| 6d 65 6e 74 29 20 28 6f | 72 20 28 6e 6f 74 20 28 |ment) (o|r (not (|
|00004260| 63 64 72 20 65 6c 65 6d | 65 6e 74 29 29 20 28 6d |cdr elem|ent)) (m|
|00004270| 65 6d 71 20 73 68 2d 73 | 68 65 6c 6c 20 28 63 64 |emq sh-s|hell (cd|
|00004280| 72 20 65 6c 65 6d 65 6e | 74 29 29 29 29 29 29 20 |r elemen|t)))))) |
|00004290| 28 70 72 65 66 69 78 2d | 6e 75 6d 65 72 69 63 2d |(prefix-|numeric-|
|000042a0| 76 61 6c 75 65 20 63 75 | 72 72 65 6e 74 2d 70 72 |value cu|rrent-pr|
|000042b0| 65 66 69 78 2d 61 72 67 | 29 29 5d 29 0a 28 62 79 |efix-arg|))]).(by|
|000042c0| 74 65 2d 63 6f 64 65 20 | 22 c0 19 c2 c3 21 83 5c |te-code |"....!.\|
|000042d0| 66 00 0b 84 14 00 c4 09 | 40 40 4e 84 2d 00 c5 c4 |f.......|@@N.-...|
|000042e0| 09 40 40 09 40 41 39 83 | 28 00 c4 09 40 41 4e 82 |.@@.@A9.|(...@AN.|
|000042f0| 2b 00 09 40 41 23 88 09 | 41 89 11 84 02 00 29 c5 |+..@A#..|A.....).|
|00004300| c4 c6 c7 23 87 22 20 5b | 28 28 73 68 20 6e 69 6c |...#." [|((sh nil|
|00004310| 20 22 28 29 20 7b 22 20 | 6e 20 3e 20 5f 20 6e 20 | "() {" |n > _ n |
|00004320| 3c 20 22 7d 22 29 20 28 | 6b 73 68 20 22 6e 61 6d |< "}") (|ksh "nam|
|00004330| 65 3a 20 22 20 22 66 75 | 6e 63 74 69 6f 6e 20 22 |e: " "fu|nction "|
|00004340| 20 73 74 72 20 22 20 7b | 22 20 6e 20 3e 20 5f 20 | str " {|" n > _ |
|00004350| 6e 20 3c 20 22 7d 22 29 | 20 28 62 61 73 68 20 22 |n < "}")| (bash "|
|00004360| 6e 61 6d 65 3a 20 22 20 | 22 66 75 6e 63 74 69 6f |name: " |"functio|
|00004370| 6e 20 22 20 73 74 72 20 | 22 28 29 20 7b 22 20 6e |n " str |"() {" n|
|00004380| 20 3e 20 5f 20 6e 20 3c | 20 22 7d 22 29 29 20 64 | > _ n <| "}")) d|
|00004390| 65 66 69 6e 69 74 69 6f | 6e 73 20 62 6f 75 6e 64 |efinitio|ns bound|
|000043a0| 70 20 73 6b 65 6c 65 74 | 6f 6e 2d 64 65 62 75 67 |p skelet|on-debug|
|000043b0| 20 73 68 2d 66 75 6e 63 | 74 69 6f 6e 20 70 75 74 | sh-func|tion put|
|000043c0| 20 6d 65 6e 75 2d 65 6e | 61 62 6c 65 20 28 67 65 | menu-en|able (ge|
|000043d0| 74 20 28 71 75 6f 74 65 | 20 73 68 2d 66 75 6e 63 |t (quote| sh-func|
|000043e0| 74 69 6f 6e 29 20 73 68 | 2d 73 68 65 6c 6c 29 5d |tion) sh|-shell)]|
|000043f0| 20 36 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 | 6).(def|alias 's|
|00004400| 68 2d 66 75 6e 63 74 69 | 6f 6e 20 23 5b 6e 69 6c |h-functi|on #[nil|
|00004410| 20 22 c0 c1 5c 6e 4e 86 | 5c 66 00 c3 c4 c1 5c 6e | "..\nN.|\f....\n|
|00004420| 23 21 87 22 20 5b 73 6b | 65 6c 65 74 6f 6e 2d 69 |#!." [sk|eleton-i|
|00004430| 6e 73 65 72 74 20 73 68 | 2d 66 75 6e 63 74 69 6f |nsert sh|-functio|
|00004440| 6e 20 73 68 2d 73 68 65 | 6c 6c 20 65 72 72 6f 72 |n sh-she|ll error|
|00004450| 20 22 25 73 20 73 74 61 | 74 65 6d 65 6e 74 20 73 | "%s sta|tement s|
|00004460| 79 6e 74 61 78 20 6e 6f | 74 20 64 65 66 69 6e 65 |yntax no|t define|
|00004470| 64 20 66 6f 72 20 73 68 | 65 6c 6c 20 25 73 2e 22 |d for sh|ell %s."|
|00004480| 5d 20 35 20 22 5c 0a 49 | 6e 73 65 72 74 20 61 20 |] 5 "\.I|nsert a |
|00004490| 66 75 6e 63 74 69 6f 6e | 20 64 65 66 69 6e 69 74 |function| definit|
|000044a0| 69 6f 6e 20 69 6e 20 74 | 68 65 20 63 75 72 72 65 |ion in t|he curre|
|000044b0| 6e 74 20 73 68 65 6c 6c | 27 73 20 73 79 6e 74 61 |nt shell|'s synta|
|000044c0| 78 2e 22 20 6e 69 6c 5d | 29 0a 28 62 79 74 65 2d |x." nil]|).(byte-|
|000044d0| 63 6f 64 65 20 22 c0 19 | c2 c3 21 83 5c 66 00 0b |code "..|..!.\f..|
|000044e0| 84 14 00 c4 09 40 40 4e | 84 2d 00 c5 c4 09 40 40 |.....@@N|.-....@@|
|000044f0| 09 40 41 39 83 28 00 c4 | 09 40 41 4e 82 2b 00 09 |.@A9.(..|.@AN.+..|
|00004500| 40 41 23 88 09 41 89 11 | 84 02 00 29 c5 c4 c6 c7 |@A#..A..|...)....|
|00004510| 23 87 22 20 5b 28 28 73 | 68 20 22 63 6f 6e 64 69 |#." [((s|h "condi|
|00004520| 74 69 6f 6e 3a 20 22 20 | 22 69 66 20 5b 20 22 20 |tion: " |"if [ " |
|00004530| 73 74 72 20 22 20 5d 3b | 20 74 68 65 6e 22 20 6e |str " ];| then" n|
|00004540| 20 3e 20 5f 20 6e 20 28 | 22 6f 74 68 65 72 20 63 | > _ n (|"other c|
|00004550| 6f 6e 64 69 74 69 6f 6e | 2c 20 25 73 3a 20 22 20 |ondition|, %s: " |
|00004560| 3c 20 22 65 6c 69 66 20 | 5b 20 22 20 73 74 72 20 |< "elif |[ " str |
|00004570| 22 20 5d 3b 20 74 68 65 | 6e 22 20 6e 20 3e 20 6e |" ]; the|n" n > n|
|00004580| 29 20 3c 20 22 65 6c 73 | 65 22 20 6e 20 3e 20 6e |) < "els|e" n > n|
|00004590| 20 72 65 73 75 6d 65 3a | 20 3c 20 22 66 69 22 29 | resume:| < "fi")|
|000045a0| 20 28 6b 73 68 20 2e 20 | 73 68 29 20 28 62 61 73 | (ksh . |sh) (bas|
|000045b0| 68 20 2e 20 73 68 29 20 | 28 63 73 68 20 22 63 6f |h . sh) |(csh "co|
|000045c0| 6e 64 69 74 69 6f 6e 3a | 20 22 20 22 69 66 28 20 |ndition:| " "if( |
|000045d0| 22 20 73 74 72 20 22 20 | 29 20 74 68 65 6e 22 20 |" str " |) then" |
|000045e0| 6e 20 3e 20 5f 20 6e 20 | 28 22 6f 74 68 65 72 20 |n > _ n |("other |
|000045f0| 63 6f 6e 64 69 74 69 6f | 6e 2c 20 25 73 3a 20 22 |conditio|n, %s: "|
|00004600| 20 3c 20 22 65 6c 73 65 | 20 69 66 20 28 20 22 20 | < "else| if ( " |
|00004610| 73 74 72 20 22 20 29 20 | 74 68 65 6e 22 20 6e 20 |str " ) |then" n |
|00004620| 3e 20 6e 29 20 3c 20 22 | 65 6c 73 65 22 20 6e 20 |> n) < "|else" n |
|00004630| 3e 20 6e 20 72 65 73 75 | 6d 65 3a 20 3c 20 22 65 |> n resu|me: < "e|
|00004640| 6e 64 69 66 22 29 20 28 | 74 63 73 68 20 2e 20 63 |ndif") (|tcsh . c|
|00004650| 73 68 29 29 20 64 65 66 | 69 6e 69 74 69 6f 6e 73 |sh)) def|initions|
|00004660| 20 62 6f 75 6e 64 70 20 | 73 6b 65 6c 65 74 6f 6e | boundp |skeleton|
|00004670| 2d 64 65 62 75 67 20 73 | 68 2d 69 66 20 70 75 74 |-debug s|h-if put|
|00004680| 20 6d 65 6e 75 2d 65 6e | 61 62 6c 65 20 28 67 65 | menu-en|able (ge|
|00004690| 74 20 28 71 75 6f 74 65 | 20 73 68 2d 69 66 29 20 |t (quote| sh-if) |
|000046a0| 73 68 2d 73 68 65 6c 6c | 29 5d 20 36 29 0a 28 64 |sh-shell|)] 6).(d|
|000046b0| 65 66 61 6c 69 61 73 20 | 27 73 68 2d 69 66 20 23 |efalias |'sh-if #|
|000046c0| 5b 6e 69 6c 20 22 c0 c1 | 5c 6e 4e 86 5c 66 00 c3 |[nil "..|\nN.\f..|
|000046d0| c4 c1 5c 6e 23 21 87 22 | 20 5b 73 6b 65 6c 65 74 |..\n#!."| [skelet|
|000046e0| 6f 6e 2d 69 6e 73 65 72 | 74 20 73 68 2d 69 66 20 |on-inser|t sh-if |
|000046f0| 73 68 2d 73 68 65 6c 6c | 20 65 72 72 6f 72 20 22 |sh-shell| error "|
|00004700| 25 73 20 73 74 61 74 65 | 6d 65 6e 74 20 73 79 6e |%s state|ment syn|
|00004710| 74 61 78 20 6e 6f 74 20 | 64 65 66 69 6e 65 64 20 |tax not |defined |
|00004720| 66 6f 72 20 73 68 65 6c | 6c 20 25 73 2e 22 5d 20 |for shel|l %s."] |
|00004730| 35 20 22 5c 0a 49 6e 73 | 65 72 74 20 61 6e 20 69 |5 "\.Ins|ert an i|
|00004740| 66 20 73 74 61 74 65 6d | 65 6e 74 20 69 6e 20 74 |f statem|ent in t|
|00004750| 68 65 20 63 75 72 72 65 | 6e 74 20 73 68 65 6c 6c |he curre|nt shell|
|00004760| 27 73 20 73 79 6e 74 61 | 78 2e 22 20 6e 69 6c 5d |'s synta|x." nil]|
|00004770| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 19 |).(byte-|code "..|
|00004780| c2 c3 21 83 5c 66 00 0b | 84 14 00 c4 09 40 40 4e |..!.\f..|.....@@N|
|00004790| 84 2d 00 c5 c4 09 40 40 | 09 40 41 39 83 28 00 c4 |.-....@@|.@A9.(..|
|000047a0| 09 40 41 4e 82 2b 00 09 | 40 41 23 88 09 41 89 11 |.@AN.+..|@A#..A..|
|000047b0| 84 02 00 29 c5 c4 c6 c7 | 23 87 22 20 5b 28 28 6b |...)....|#." [((k|
|000047c0| 73 68 20 22 49 6e 64 65 | 78 20 76 61 72 69 61 62 |sh "Inde|x variab|
|000047d0| 6c 65 3a 20 22 20 22 73 | 65 6c 65 63 74 20 22 20 |le: " "s|elect " |
|000047e0| 73 74 72 20 22 20 69 6e | 20 22 20 5f 20 22 3b 20 |str " in| " _ "; |
|000047f0| 64 6f 22 20 6e 20 3e 20 | 33 36 20 73 74 72 20 6e |do" n > |36 str n|
|00004800| 20 3c 20 22 64 6f 6e 65 | 22 29 29 20 64 65 66 69 | < "done|")) defi|
|00004810| 6e 69 74 69 6f 6e 73 20 | 62 6f 75 6e 64 70 20 73 |nitions |boundp s|
|00004820| 6b 65 6c 65 74 6f 6e 2d | 64 65 62 75 67 20 73 68 |keleton-|debug sh|
|00004830| 2d 73 65 6c 65 63 74 20 | 70 75 74 20 6d 65 6e 75 |-select |put menu|
|00004840| 2d 65 6e 61 62 6c 65 20 | 28 67 65 74 20 28 71 75 |-enable |(get (qu|
|00004850| 6f 74 65 20 73 68 2d 73 | 65 6c 65 63 74 29 20 73 |ote sh-s|elect) s|
|00004860| 68 2d 73 68 65 6c 6c 29 | 5d 20 36 29 0a 28 64 65 |h-shell)|] 6).(de|
|00004870| 66 61 6c 69 61 73 20 27 | 73 68 2d 73 65 6c 65 63 |falias '|sh-selec|
|00004880| 74 20 23 5b 6e 69 6c 20 | 22 c0 c1 5c 6e 4e 86 5c |t #[nil |"..\nN.\|
|00004890| 66 00 c3 c4 c1 5c 6e 23 | 21 87 22 20 5b 73 6b 65 |f....\n#|!." [ske|
|000048a0| 6c 65 74 6f 6e 2d 69 6e | 73 65 72 74 20 73 68 2d |leton-in|sert sh-|
|000048b0| 73 65 6c 65 63 74 20 73 | 68 2d 73 68 65 6c 6c 20 |select s|h-shell |
|000048c0| 65 72 72 6f 72 20 22 25 | 73 20 73 74 61 74 65 6d |error "%|s statem|
|000048d0| 65 6e 74 20 73 79 6e 74 | 61 78 20 6e 6f 74 20 64 |ent synt|ax not d|
|000048e0| 65 66 69 6e 65 64 20 66 | 6f 72 20 73 68 65 6c 6c |efined f|or shell|
|000048f0| 20 25 73 2e 22 5d 20 35 | 20 22 5c 0a 49 6e 73 65 | %s."] 5| "\.Inse|
|00004900| 72 74 20 61 20 73 65 6c | 65 63 74 20 73 74 61 74 |rt a sel|ect stat|
|00004910| 65 6d 65 6e 74 20 69 6e | 20 74 68 65 20 63 75 72 |ement in| the cur|
|00004920| 72 65 6e 74 20 73 68 65 | 6c 6c 27 73 20 73 79 6e |rent she|ll's syn|
|00004930| 74 61 78 2e 22 20 6e 69 | 6c 5d 29 0a 28 62 79 74 |tax." ni|l]).(byt|
|00004940| 65 2d 63 6f 64 65 20 22 | c0 c1 c2 c3 23 88 c4 1d |e-code "|....#...|
|00004950| c6 c7 21 83 13 00 0e 07 | 84 1b 00 c8 0d 40 40 4e |..!.....|.....@@N|
|00004960| 84 34 00 c0 c8 0d 40 40 | 0d 40 41 39 83 2f 00 c8 |.4....@@|.@A9./..|
|00004970| 0d 40 41 4e 82 32 00 0d | 40 41 23 88 0d 41 89 15 |.@AN.2..|@A#..A..|
|00004980| 84 08 00 29 c0 c8 c2 c9 | 23 87 22 20 5b 70 75 74 |...)....|#." [put|
|00004990| 20 73 68 2d 73 65 6c 65 | 63 74 20 6d 65 6e 75 2d | sh-sele|ct menu-|
|000049a0| 65 6e 61 62 6c 65 20 28 | 67 65 74 20 28 71 75 6f |enable (|get (quo|
|000049b0| 74 65 20 73 68 2d 73 65 | 6c 65 63 74 29 20 73 68 |te sh-se|lect) sh|
|000049c0| 2d 73 68 65 6c 6c 29 20 | 28 28 73 68 20 22 63 6f |-shell) |((sh "co|
|000049d0| 6e 64 69 74 69 6f 6e 3a | 20 22 20 22 75 6e 74 69 |ndition:| " "unti|
|000049e0| 6c 20 5b 20 22 20 73 74 | 72 20 22 20 5d 3b 20 64 |l [ " st|r " ]; d|
|000049f0| 6f 22 20 6e 20 3e 20 5f | 20 6e 20 3c 20 22 64 6f |o" n > _| n < "do|
|00004a00| 6e 65 22 29 20 28 6b 73 | 68 20 2e 20 73 68 29 20 |ne") (ks|h . sh) |
|00004a10| 28 62 61 73 68 20 2e 20 | 73 68 29 29 20 64 65 66 |(bash . |sh)) def|
|00004a20| 69 6e 69 74 69 6f 6e 73 | 20 62 6f 75 6e 64 70 20 |initions| boundp |
|00004a30| 73 6b 65 6c 65 74 6f 6e | 2d 64 65 62 75 67 20 73 |skeleton|-debug s|
|00004a40| 68 2d 75 6e 74 69 6c 20 | 28 67 65 74 20 28 71 75 |h-until |(get (qu|
|00004a50| 6f 74 65 20 73 68 2d 75 | 6e 74 69 6c 29 20 73 68 |ote sh-u|ntil) sh|
|00004a60| 2d 73 68 65 6c 6c 29 5d | 20 36 29 0a 28 64 65 66 |-shell)]| 6).(def|
|00004a70| 61 6c 69 61 73 20 27 73 | 68 2d 75 6e 74 69 6c 20 |alias 's|h-until |
|00004a80| 23 5b 6e 69 6c 20 22 c0 | c1 5c 6e 4e 86 5c 66 00 |#[nil ".|.\nN.\f.|
|00004a90| c3 c4 c1 5c 6e 23 21 87 | 22 20 5b 73 6b 65 6c 65 |...\n#!.|" [skele|
|00004aa0| 74 6f 6e 2d 69 6e 73 65 | 72 74 20 73 68 2d 75 6e |ton-inse|rt sh-un|
|00004ab0| 74 69 6c 20 73 68 2d 73 | 68 65 6c 6c 20 65 72 72 |til sh-s|hell err|
|00004ac0| 6f 72 20 22 25 73 20 73 | 74 61 74 65 6d 65 6e 74 |or "%s s|tatement|
|00004ad0| 20 73 79 6e 74 61 78 20 | 6e 6f 74 20 64 65 66 69 | syntax |not defi|
|00004ae0| 6e 65 64 20 66 6f 72 20 | 73 68 65 6c 6c 20 25 73 |ned for |shell %s|
|00004af0| 2e 22 5d 20 35 20 22 5c | 0a 49 6e 73 65 72 74 20 |."] 5 "\|.Insert |
|00004b00| 61 6e 20 75 6e 74 69 6c | 20 6c 6f 6f 70 20 69 6e |an until| loop in|
|00004b10| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 73 68 65 | the cur|rent she|
|00004b20| 6c 6c 27 73 20 73 79 6e | 74 61 78 2e 22 20 6e 69 |ll's syn|tax." ni|
|00004b30| 6c 5d 29 0a 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |l]).(byt|e-code "|
|00004b40| c0 c1 c2 c3 23 88 c4 1d | c6 c7 21 83 13 00 0e 07 |....#...|..!.....|
|00004b50| 84 1b 00 c8 0d 40 40 4e | 84 34 00 c0 c8 0d 40 40 |.....@@N|.4....@@|
|00004b60| 0d 40 41 39 83 2f 00 c8 | 0d 40 41 4e 82 32 00 0d |.@A9./..|.@AN.2..|
|00004b70| 40 41 23 88 0d 41 89 15 | 84 08 00 29 c0 c8 c2 c9 |@A#..A..|...)....|
|00004b80| 23 87 22 20 5b 70 75 74 | 20 73 68 2d 75 6e 74 69 |#." [put| sh-unti|
|00004b90| 6c 20 6d 65 6e 75 2d 65 | 6e 61 62 6c 65 20 28 67 |l menu-e|nable (g|
|00004ba0| 65 74 20 28 71 75 6f 74 | 65 20 73 68 2d 75 6e 74 |et (quot|e sh-unt|
|00004bb0| 69 6c 29 20 73 68 2d 73 | 68 65 6c 6c 29 20 28 28 |il) sh-s|hell) ((|
|00004bc0| 73 68 20 22 63 6f 6e 64 | 69 74 69 6f 6e 3a 20 22 |sh "cond|ition: "|
|00004bd0| 20 22 77 68 69 6c 65 20 | 5b 20 22 20 73 74 72 20 | "while |[ " str |
|00004be0| 22 20 5d 3b 20 64 6f 22 | 20 6e 20 3e 20 5f 20 6e |" ]; do"| n > _ n|
|00004bf0| 20 3c 20 22 64 6f 6e 65 | 22 29 20 28 6b 73 68 20 | < "done|") (ksh |
|00004c00| 2e 20 73 68 29 20 28 62 | 61 73 68 20 2e 20 73 68 |. sh) (b|ash . sh|
|00004c10| 29 20 28 63 73 68 20 22 | 63 6f 6e 64 69 74 69 6f |) (csh "|conditio|
|00004c20| 6e 3a 20 22 20 22 77 68 | 69 6c 65 28 20 22 20 73 |n: " "wh|ile( " s|
|00004c30| 74 72 20 22 20 29 22 20 | 6e 20 3e 20 5f 20 6e 20 |tr " )" |n > _ n |
|00004c40| 3c 20 22 65 6e 64 22 29 | 20 28 74 63 73 68 20 2e |< "end")| (tcsh .|
|00004c50| 20 63 73 68 29 29 20 64 | 65 66 69 6e 69 74 69 6f | csh)) d|efinitio|
|00004c60| 6e 73 20 62 6f 75 6e 64 | 70 20 73 6b 65 6c 65 74 |ns bound|p skelet|
|00004c70| 6f 6e 2d 64 65 62 75 67 | 20 73 68 2d 77 68 69 6c |on-debug| sh-whil|
|00004c80| 65 20 28 67 65 74 20 28 | 71 75 6f 74 65 20 73 68 |e (get (|quote sh|
|00004c90| 2d 77 68 69 6c 65 29 20 | 73 68 2d 73 68 65 6c 6c |-while) |sh-shell|
|00004ca0| 29 5d 20 36 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |)] 6).(d|efalias |
|00004cb0| 27 73 68 2d 77 68 69 6c | 65 20 23 5b 6e 69 6c 20 |'sh-whil|e #[nil |
|00004cc0| 22 c0 c1 5c 6e 4e 86 5c | 66 00 c3 c4 c1 5c 6e 23 |"..\nN.\|f....\n#|
|00004cd0| 21 87 22 20 5b 73 6b 65 | 6c 65 74 6f 6e 2d 69 6e |!." [ske|leton-in|
|00004ce0| 73 65 72 74 20 73 68 2d | 77 68 69 6c 65 20 73 68 |sert sh-|while sh|
|00004cf0| 2d 73 68 65 6c 6c 20 65 | 72 72 6f 72 20 22 25 73 |-shell e|rror "%s|
|00004d00| 20 73 74 61 74 65 6d 65 | 6e 74 20 73 79 6e 74 61 | stateme|nt synta|
|00004d10| 78 20 6e 6f 74 20 64 65 | 66 69 6e 65 64 20 66 6f |x not de|fined fo|
|00004d20| 72 20 73 68 65 6c 6c 20 | 25 73 2e 22 5d 20 35 20 |r shell |%s."] 5 |
|00004d30| 22 5c 0a 49 6e 73 65 72 | 74 20 61 20 77 68 69 6c |"\.Inser|t a whil|
|00004d40| 65 20 6c 6f 6f 70 20 69 | 6e 20 74 68 65 20 63 75 |e loop i|n the cu|
|00004d50| 72 72 65 6e 74 20 73 68 | 65 6c 6c 27 73 20 73 79 |rrent sh|ell's sy|
|00004d60| 6e 74 61 78 2e 22 20 6e | 69 6c 5d 29 0a 28 64 65 |ntax." n|il]).(de|
|00004d70| 66 61 6c 69 61 73 20 27 | 73 68 2d 71 75 65 72 79 |falias '|sh-query|
|00004d80| 2d 66 6f 72 2d 76 61 72 | 69 61 62 6c 65 20 23 5b |-for-var|iable #[|
|00004d90| 28 61 72 67 29 20 22 08 | c1 56 86 08 00 c2 20 c3 |(arg) ".|.V.... .|
|00004da0| 08 21 88 86 48 00 c4 c5 | c6 4e 86 1e 00 c7 c5 c6 |.!..H...|.N......|
|00004db0| c8 0e 09 21 23 70 1e 5c | 6e 1e 09 1e 0b cc 0e 09 |...!#p.\|n.......|
|00004dc0| cd ce 23 88 cf d0 d1 0e | 12 d3 23 21 08 d4 3d 83 |..#.....|..#!..=.|
|00004dd0| 3d 00 c1 75 88 63 88 08 | d4 3d 85 47 00 c1 75 2b |=..u.c..|.=.G..u+|
|00004de0| 87 22 20 5b 61 72 67 20 | 31 20 73 68 2d 71 75 6f |." [arg |1 sh-quo|
|00004df0| 74 65 64 2d 70 20 73 65 | 6c 66 2d 69 6e 73 65 72 |ted-p se|lf-inser|
|00004e00| 74 2d 63 6f 6d 6d 61 6e | 64 20 6e 69 6c 20 73 68 |t-comman|d nil sh|
|00004e10| 2d 71 75 65 72 79 2d 66 | 6f 72 2d 76 61 72 69 61 |-query-f|or-varia|
|00004e20| 62 6c 65 20 6b 65 79 6d | 61 70 20 70 75 74 20 63 |ble keym|ap put c|
|00004e30| 6f 70 79 2d 6b 65 79 6d | 61 70 20 6d 69 6e 69 62 |opy-keym|ap minib|
|00004e40| 75 66 66 65 72 2d 6c 6f | 63 61 6c 2d 63 6f 6d 70 |uffer-lo|cal-comp|
|00004e50| 6c 65 74 69 6f 6e 2d 6d | 61 70 20 62 75 66 66 65 |letion-m|ap buffe|
|00004e60| 72 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 2d 69 67 6e |r comple|tion-ign|
|00004e70| 6f 72 65 2d 63 61 73 65 | 20 64 65 66 69 6e 65 2d |ore-case| define-|
|00004e80| 6b 65 79 20 22 7b 22 20 | 23 5b 6e 69 6c 20 22 08 |key "{" |#[nil ".|
|00004e90| 84 5c 6e 00 60 c1 56 83 | 0d 00 c2 20 87 c3 8b 87 |.\n.`.V.|... ....|
|00004ea0| 22 20 5b 61 72 67 20 31 | 20 62 65 65 70 20 28 28 |" [arg 1| beep ((|
|00004eb0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 11 c2 0b 21 |byte-cod|e "....!|
|00004ec0| 88 c4 63 87 22 20 5b 74 | 20 61 72 67 20 73 77 69 |..c." [t| arg swi|
|00004ed0| 74 63 68 2d 74 6f 2d 62 | 75 66 66 65 72 2d 6f 74 |tch-to-b|uffer-ot|
|00004ee0| 68 65 72 2d 77 69 6e 64 | 6f 77 20 62 75 66 66 65 |her-wind|ow buffe|
|00004ef0| 72 20 22 7b 7d 22 5d 20 | 32 29 29 5d 20 32 20 6e |r "{}"] |2))] 2 n|
|00004f00| 69 6c 20 6e 69 6c 5d 20 | 73 68 2d 72 65 6d 65 6d |il nil] |sh-remem|
|00004f10| 62 65 72 2d 76 61 72 69 | 61 62 6c 65 20 63 6f 6d |ber-vari|able com|
|00004f20| 70 6c 65 74 69 6e 67 2d | 72 65 61 64 20 22 56 61 |pleting-|read "Va|
|00004f30| 72 69 61 62 6c 65 3a 20 | 22 20 73 68 2d 76 61 72 |riable: |" sh-var|
|00004f40| 69 61 62 6c 65 73 20 23 | 5b 28 65 6c 65 6d 65 6e |iables #|[(elemen|
|00004f50| 74 29 20 22 08 41 3f 86 | 5c 6e 00 09 08 41 3e 87 |t) ".A?.|\n...A>.|
|00004f60| 22 20 5b 65 6c 65 6d 65 | 6e 74 20 73 68 2d 73 68 |" [eleme|nt sh-sh|
|00004f70| 65 6c 6c 5d 20 32 5d 20 | 74 5d 20 36 20 22 5c 0a |ell] 2] |t] 6 "\.|
|00004f80| 55 6e 6c 65 73 73 20 71 | 75 6f 74 65 64 20 77 69 |Unless q|uoted wi|
|00004f90| 74 68 20 60 5c 5c 27 2c | 20 71 75 65 72 79 20 66 |th `\\',| query f|
|00004fa0| 6f 72 20 76 61 72 69 61 | 62 6c 65 2d 6e 61 6d 65 |or varia|ble-name|
|00004fb0| 20 77 69 74 68 20 63 6f | 6d 70 6c 65 74 69 6f 6e | with co|mpletion|
|00004fc0| 73 2e 0a 50 72 65 66 69 | 78 20 61 72 67 20 30 20 |s..Prefi|x arg 0 |
|00004fd0| 6d 65 61 6e 73 20 64 6f | 6e 27 74 20 69 6e 73 65 |means do|n't inse|
|00004fe0| 72 74 20 60 24 27 20 62 | 65 66 6f 72 65 20 74 68 |rt `$' b|efore th|
|00004ff0| 65 20 76 61 72 69 61 62 | 6c 65 2e 0a 50 72 65 66 |e variab|le..Pref|
|00005000| 69 78 20 61 72 67 20 32 | 20 6f 72 20 6d 6f 72 65 |ix arg 2| or more|
|00005010| 20 6d 65 61 6e 73 20 6f | 6e 6c 79 20 64 6f 20 73 | means o|nly do s|
|00005020| 65 6c 66 2d 69 6e 73 65 | 72 74 20 74 68 61 74 20 |elf-inse|rt that |
|00005030| 6d 61 6e 79 20 74 69 6d | 65 73 2e 0a 20 20 49 66 |many tim|es.. If|
|00005040| 20 7b 20 69 73 20 70 72 | 65 73 73 65 64 20 61 73 | { is pr|essed as|
|00005050| 20 74 68 65 20 66 69 72 | 73 74 20 63 68 61 72 61 | the fir|st chara|
|00005060| 63 74 65 72 2c 20 69 74 | 20 77 69 6c 6c 20 73 75 |cter, it| will su|
|00005070| 72 72 6f 75 6e 64 20 74 | 68 65 20 76 61 72 69 61 |rround t|he varia|
|00005080| 62 6c 65 20 6e 61 6d 65 | 2e 22 20 22 2a 70 22 5d |ble name|." "*p"]|
|00005090| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 68 2d |).(defal|ias 'sh-|
|000050a0| 61 73 73 69 67 6e 6d 65 | 6e 74 20 23 5b 28 61 72 |assignme|nt #[(ar|
|000050b0| 67 29 20 22 08 c1 3d 83 | 1c 00 c2 8a 0b 5c 66 3e |g) "..=.|.....\f>|
|000050c0| 83 12 00 c5 c6 78 88 60 | c7 c6 78 88 60 7b 29 21 |.....x.`|..x.`{)!|
|000050d0| 88 c8 08 21 87 22 20 5b | 61 72 67 20 31 20 73 68 |...!." [|arg 1 sh|
|000050e0| 2d 72 65 6d 65 6d 62 65 | 72 2d 76 61 72 69 61 62 |-remembe|r-variab|
|000050f0| 6c 65 20 73 68 2d 73 68 | 65 6c 6c 20 73 68 2d 61 |le sh-sh|ell sh-a|
|00005100| 73 73 69 67 6e 6d 65 6e | 74 2d 73 70 61 63 65 20 |ssignmen|t-space |
|00005110| 22 20 09 22 20 6e 69 6c | 20 22 61 2d 7a 41 2d 5a |" ." nil| "a-zA-Z|
|00005120| 30 2d 39 5f 22 20 73 65 | 6c 66 2d 69 6e 73 65 72 |0-9_" se|lf-inser|
|00005130| 74 2d 63 6f 6d 6d 61 6e | 64 5d 20 34 20 22 5c 0a |t-comman|d] 4 "\.|
|00005140| 49 6e 73 65 72 74 20 73 | 65 6c 66 2e 20 20 52 65 |Insert s|elf. Re|
|00005150| 6d 65 6d 62 65 72 20 70 | 72 65 76 69 6f 75 73 20 |member p|revious |
|00005160| 69 64 65 6e 74 69 66 69 | 65 72 20 66 6f 72 20 66 |identifi|er for f|
|00005170| 75 74 75 72 65 20 63 6f | 6d 70 6c 65 74 69 6e 67 |uture co|mpleting|
|00005180| 20 72 65 61 64 2e 22 20 | 22 70 22 5d 29 0a 28 64 | read." |"p"]).(d|
|00005190| 65 66 61 6c 69 61 73 20 | 27 73 68 2d 6d 61 79 62 |efalias |'sh-mayb|
|000051a0| 65 2d 68 65 72 65 2d 64 | 6f 63 75 6d 65 6e 74 20 |e-here-d|ocument |
|000051b0| 23 5b 28 61 72 67 29 20 | 22 c0 c1 5c 6e 21 21 88 |#[(arg) |"..\n!!.|
|000051c0| 5c 6e 86 3a 00 60 c3 5a | 66 5c 66 3d 3f 86 3a 00 |\n.:.`.Z|f\f=?.:.|
|000051d0| 8a 60 c3 5a 62 88 c5 20 | 29 86 3a 00 0e 06 63 88 |.`.Zb.. |).:...c.|
|000051e0| c7 c8 21 84 2d 00 c9 63 | 88 ca 7f 88 cb 20 88 8a |..!.-..c|..... ..|
|000051f0| cc 0e 06 b1 02 29 87 22 | 20 5b 73 65 6c 66 2d 69 |.....)."| [self-i|
|00005200| 6e 73 65 72 74 2d 63 6f | 6d 6d 61 6e 64 20 70 72 |nsert-co|mmand pr|
|00005210| 65 66 69 78 2d 6e 75 6d | 65 72 69 63 2d 76 61 6c |efix-num|eric-val|
|00005220| 75 65 20 61 72 67 20 32 | 20 6c 61 73 74 2d 63 6f |ue arg 2| last-co|
|00005230| 6d 6d 61 6e 64 2d 63 68 | 61 72 20 73 68 2d 71 75 |mmand-ch|ar sh-qu|
|00005240| 6f 74 65 64 2d 70 20 73 | 68 2d 68 65 72 65 2d 64 |oted-p s|h-here-d|
|00005250| 6f 63 75 6d 65 6e 74 2d | 77 6f 72 64 20 6c 6f 6f |ocument-|word loo|
|00005260| 6b 69 6e 67 2d 61 74 20 | 22 5b 20 09 5c 6e 5d 22 |king-at |"[ .\n]"|
|00005270| 20 33 32 20 31 20 6e 65 | 77 6c 69 6e 65 20 31 30 | 32 1 ne|wline 10|
|00005280| 5d 20 33 20 22 5c 0a 49 | 6e 73 65 72 74 73 20 73 |] 3 "\.I|nserts s|
|00005290| 65 6c 66 2e 20 20 57 69 | 74 68 6f 75 74 20 70 72 |elf. Wi|thout pr|
|000052a0| 65 66 69 78 2c 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |efix, fo|llowing |
|000052b0| 75 6e 71 75 6f 74 65 64 | 20 60 3c 27 20 69 6e 73 |unquoted| `<' ins|
|000052c0| 65 72 74 73 20 68 65 72 | 65 20 64 6f 63 75 6d 65 |erts her|e docume|
|000052d0| 6e 74 2e 0a 54 68 65 20 | 64 6f 63 75 6d 65 6e 74 |nt..The |document|
|000052e0| 20 69 73 20 62 6f 75 6e | 64 65 64 20 62 79 20 60 | is boun|ded by `|
|000052f0| 73 68 2d 68 65 72 65 2d | 64 6f 63 75 6d 65 6e 74 |sh-here-|document|
|00005300| 2d 77 6f 72 64 27 2e 22 | 20 22 2a 50 22 5d 29 0a |-word'."| "*P"]).|
|00005310| 28 61 75 74 6f 6c 6f 61 | 64 20 28 71 75 6f 74 65 |(autoloa|d (quote|
|00005320| 20 63 6f 6d 69 6e 74 2d | 64 79 6e 61 6d 69 63 2d | comint-|dynamic-|
|00005330| 63 6f 6d 70 6c 65 74 65 | 2d 66 69 6c 65 6e 61 6d |complete|-filenam|
|00005340| 65 29 20 22 63 6f 6d 69 | 6e 74 22 20 22 5c 0a 44 |e) "comi|nt" "\.D|
|00005350| 79 6e 61 6d 69 63 61 6c | 6c 79 20 63 6f 6d 70 6c |ynamical|ly compl|
|00005360| 65 74 65 20 74 68 65 20 | 66 69 6c 65 6e 61 6d 65 |ete the |filename|
|00005370| 20 61 74 20 70 6f 69 6e | 74 2e 22 20 74 29 0a 28 | at poin|t." t).(|
|00005380| 64 65 66 61 6c 69 61 73 | 20 27 73 68 2d 6e 65 77 |defalias| 'sh-new|
|00005390| 6c 69 6e 65 2d 61 6e 64 | 2d 69 6e 64 65 6e 74 20 |line-and|-indent |
|000053a0| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 61 72 67 |#[(&opti|onal arg|
|000053b0| 29 20 22 c0 20 60 19 1a | 0b 84 1f 00 c4 c5 78 88 |) ". `..|......x.|
|000053c0| 60 09 57 83 1b 00 c6 20 | 83 1b 00 c7 75 88 60 09 |`.W.... |....u.`.|
|000053d0| 7c 88 c8 20 88 5c 6e 6a | 2a 87 22 20 5b 63 75 72 ||.. .\nj|*." [cur|
|000053e0| 72 65 6e 74 2d 69 6e 64 | 65 6e 74 61 74 69 6f 6e |rent-ind|entation|
|000053f0| 20 65 6e 64 2d 6f 66 2d | 6c 69 6e 65 20 70 72 65 | end-of-|line pre|
|00005400| 76 69 6f 75 73 20 61 72 | 67 20 22 20 09 22 20 6e |vious ar|g " ." n|
|00005410| 69 6c 20 73 68 2d 71 75 | 6f 74 65 64 2d 70 20 31 |il sh-qu|oted-p 1|
|00005420| 20 6e 65 77 6c 69 6e 65 | 5d 20 32 20 22 5c 0a 53 | newline|] 2 "\.S|
|00005430| 74 72 69 70 20 75 6e 71 | 75 6f 74 65 64 20 77 68 |trip unq|uoted wh|
|00005440| 69 74 65 73 70 61 63 65 | 2c 20 69 6e 73 65 72 74 |itespace|, insert|
|00005450| 20 6e 65 77 6c 69 6e 65 | 2c 20 61 6e 64 20 69 6e | newline|, and in|
|00005460| 64 65 6e 74 20 6c 69 6b | 65 20 63 75 72 72 65 6e |dent lik|e curren|
|00005470| 74 20 6c 69 6e 65 2e 0a | 55 6e 71 75 6f 74 65 64 |t line..|Unquoted|
|00005480| 20 77 68 69 74 65 73 70 | 61 63 65 20 69 73 20 73 | whitesp|ace is s|
|00005490| 74 72 69 70 70 65 64 20 | 66 72 6f 6d 20 74 68 65 |tripped |from the|
|000054a0| 20 63 75 72 72 65 6e 74 | 20 6c 69 6e 65 27 73 20 | current| line's |
|000054b0| 65 6e 64 2c 20 75 6e 6c | 65 73 73 20 61 0a 70 72 |end, unl|ess a.pr|
|000054c0| 65 66 69 78 20 41 52 47 | 20 69 73 20 67 69 76 65 |efix ARG| is give|
|000054d0| 6e 2e 22 20 22 2a 50 22 | 5d 29 0a 28 64 65 66 61 |n." "*P"|]).(defa|
|000054e0| 6c 69 61 73 20 27 73 68 | 2d 73 65 74 2d 73 68 65 |lias 'sh|-set-she|
|000054f0| 6c 6c 20 23 5b 28 73 68 | 65 6c 6c 29 20 22 8a 65 |ll #[(sh|ell) ".e|
|00005500| 62 88 c0 09 21 83 0e 00 | 09 82 18 00 c2 09 21 86 |b...!...|......!.|
|00005510| 18 00 c3 c4 09 5c 22 15 | c6 c7 0d 21 21 89 16 08 |.....\".|...!!...|
|00005520| c9 3e 16 5c 6e cb cc cd | 0e 08 5c 22 21 89 16 0e |.>.\n...|..\"!...|
|00005530| 83 3f 00 cf 0e 0e 21 83 | 3f 00 0e 0e 4a 82 41 00 |.?....!.|?...J.A.|
|00005540| 0e 10 16 0e 0e 5c 6e 83 | 4c 00 d1 82 4d 00 d2 16 |.....\n.|L...M...|
|00005550| 13 cc d4 0e 08 5c 22 16 | 15 0d 0e 16 85 5d 00 d7 |.....\".|.....]..|
|00005560| 0e 16 51 11 0e 18 84 cd | 00 0e 19 83 74 00 da 0e |..Q.....|....t...|
|00005570| 1b 0e 19 5c 22 84 cd 00 | cf dc 21 83 84 00 0e 1c |...\"...|..!.....|
|00005580| 83 84 00 0e 1d 82 85 00 | de 83 cd 00 df e0 21 83 |........|......!.|
|00005590| c7 00 e1 e2 77 83 cd 00 | 09 60 8a e2 7f 88 60 29 |....w...|.`....`)|
|000055a0| 7b 98 84 cd 00 0e 23 83 | af 00 e4 e5 09 e6 51 21 |{.....#.|......Q!|
|000055b0| 82 b5 00 e7 e8 65 60 7b | 5c 22 83 cd 00 60 e2 7f |.....e`{|\"...`..|
|000055c0| 88 60 7c 84 cd 00 09 63 | 88 82 cd 00 e9 09 ea b1 |.`|....c|........|
|000055d0| 03 88 29 eb ec 21 87 22 | 20 5b 66 69 6c 65 2d 6e |..)..!."| [file-n|
|000055e0| 61 6d 65 2d 61 62 73 6f | 6c 75 74 65 2d 70 20 73 |ame-abso|lute-p s|
|000055f0| 68 65 6c 6c 20 73 68 2d | 65 78 65 63 75 74 61 62 |hell sh-|executab|
|00005600| 6c 65 20 65 72 72 6f 72 | 20 22 43 61 6e 6e 6f 74 |le error| "Cannot|
|00005610| 20 66 69 6e 64 20 25 73 | 2e 22 20 73 68 2d 73 68 | find %s|." sh-sh|
|00005620| 65 6c 6c 2d 70 61 74 68 | 20 69 6e 74 65 72 6e 20 |ell-path| intern |
|00005630| 66 69 6c 65 2d 6e 61 6d | 65 2d 6e 6f 6e 64 69 72 |file-nam|e-nondir|
|00005640| 65 63 74 6f 72 79 20 73 | 68 2d 73 68 65 6c 6c 20 |ectory s|h-shell |
|00005650| 28 63 73 68 20 74 63 73 | 68 29 20 73 68 2d 73 68 |(csh tcs|h) sh-sh|
|00005660| 65 6c 6c 2d 69 73 2d 63 | 73 68 20 69 6e 74 65 72 |ell-is-c|sh inter|
|00005670| 6e 2d 73 6f 66 74 20 66 | 6f 72 6d 61 74 20 22 73 |n-soft f|ormat "s|
|00005680| 68 2d 25 73 2d 66 6f 6e | 74 2d 6c 6f 63 6b 2d 6b |h-%s-fon|t-lock-k|
|00005690| 65 79 77 6f 72 64 73 22 | 20 66 6f 6e 74 2d 6c 6f |eywords"| font-lo|
|000056a0| 63 6b 2d 6b 65 79 77 6f | 72 64 73 20 62 6f 75 6e |ck-keywo|rds boun|
|000056b0| 64 70 20 73 68 2d 66 6f | 6e 74 2d 6c 6f 63 6b 2d |dp sh-fo|nt-lock-|
|000056c0| 6b 65 79 77 6f 72 64 73 | 20 22 5c 5c 28 5e 5c 5c |keywords| "\\(^\\|
|000056d0| 7c 5b 5e 24 5d 5c 5c 7c | 5c 5c 24 5b 5e 7b 5d 5c ||[^$]\\||\\$[^{]\|
|000056e0| 5c 29 23 2b 5b 09 20 5d | 2a 22 20 22 5c 5c 28 5e |\)#+[. ]|*" "\\(^|
|000056f0| 5c 5c 7c 5b 5e 24 5d 5c | 5c 7c 5c 5c 24 5b 5e 7b |\\|[^$]\|\|\\$[^{|
|00005700| 5d 5c 5c 29 5c 5c 42 23 | 2b 5b 09 20 5d 2a 22 20 |]\\)\\B#|+[. ]*" |
|00005710| 63 6f 6d 6d 65 6e 74 2d | 73 74 61 72 74 2d 73 6b |comment-|start-sk|
|00005720| 69 70 20 22 3a 20 25 73 | 22 20 6d 6f 64 65 2d 6c |ip ": %s|" mode-l|
|00005730| 69 6e 65 2d 70 72 6f 63 | 65 73 73 20 73 68 2d 73 |ine-proc|ess sh-s|
|00005740| 68 65 6c 6c 2d 61 72 67 | 75 6d 65 6e 74 20 22 20 |hell-arg|ument " |
|00005750| 22 20 62 75 66 66 65 72 | 2d 72 65 61 64 2d 6f 6e |" buffer|-read-on|
|00005760| 6c 79 20 62 75 66 66 65 | 72 2d 66 69 6c 65 2d 6e |ly buffe|r-file-n|
|00005770| 61 6d 65 20 73 74 72 69 | 6e 67 2d 6d 61 74 63 68 |ame stri|ng-match|
|00005780| 20 73 68 2d 6d 61 67 69 | 63 6c 65 73 73 2d 66 69 | sh-magi|cless-fi|
|00005790| 6c 65 2d 72 65 67 65 78 | 70 20 66 69 6e 64 2d 66 |le-regex|p find-f|
|000057a0| 69 6c 65 20 73 68 2d 66 | 69 6e 64 2d 66 69 6c 65 |ile sh-f|ind-file|
|000057b0| 2d 6d 6f 64 69 66 69 65 | 73 20 74 20 6c 6f 6f 6b |-modifie|s t look|
|000057c0| 69 6e 67 2d 61 74 20 22 | 23 21 22 20 22 23 21 20 |ing-at "|#!" "#! |
|000057d0| 09 22 20 6e 69 6c 20 73 | 68 2d 71 75 65 72 79 2d |." nil s|h-query-|
|000057e0| 66 6f 72 2d 6d 61 67 69 | 63 20 79 2d 6f 72 2d 6e |for-magi|c y-or-n|
|000057f0| 2d 70 20 22 52 65 70 6c | 61 63 65 20 6d 61 67 69 |-p "Repl|ace magi|
|00005800| 63 20 6e 75 6d 62 65 72 | 20 62 79 20 60 60 23 21 |c number| by ``#!|
|00005810| 20 22 20 22 27 27 3f 20 | 22 20 6d 65 73 73 61 67 | " "''? |" messag|
|00005820| 65 20 22 4d 61 67 69 63 | 20 6e 75 6d 62 65 72 20 |e "Magic| number |
|00005830| 60 60 25 73 27 27 20 72 | 65 70 6c 61 63 65 64 2e |``%s'' r|eplaced.|
|00005840| 22 20 22 23 21 20 22 20 | 31 30 20 72 75 6e 2d 68 |" "#! " |10 run-h|
|00005850| 6f 6f 6b 73 20 73 68 2d | 73 65 74 2d 73 68 65 6c |ooks sh-|set-shel|
|00005860| 6c 2d 68 6f 6f 6b 5d 20 | 35 20 22 5c 0a 53 65 74 |l-hook] |5 "\.Set|
|00005870| 20 74 68 69 73 20 62 75 | 66 66 65 72 27 73 20 73 | this bu|ffer's s|
|00005880| 68 65 6c 6c 20 74 6f 20 | 53 48 45 4c 4c 20 28 61 |hell to |SHELL (a|
|00005890| 20 73 74 72 69 6e 67 29 | 2e 0a 43 61 6c 6c 73 20 | string)|..Calls |
|000058a0| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 60 73 68 |the valu|e of `sh|
|000058b0| 2d 73 65 74 2d 73 68 65 | 6c 6c 2d 68 6f 6f 6b 27 |-set-she|ll-hook'|
|000058c0| 20 69 66 20 73 65 74 2e | 22 20 22 73 4e 61 6d 65 | if set.|" "sName|
|000058d0| 20 6f 72 20 70 61 74 68 | 20 6f 66 20 73 68 65 6c | or path| of shel|
|000058e0| 6c 3a 20 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |l: "]).(|defalias|
|000058f0| 20 27 73 68 2d 62 65 67 | 69 6e 6e 69 6e 67 2d 6f | 'sh-beg|inning-o|
|00005900| 66 2d 63 6f 6d 6d 61 6e | 64 20 23 5b 6e 69 6c 20 |f-comman|d #[nil |
|00005910| 22 c0 09 c2 c3 23 85 0b | 00 c4 94 62 87 22 20 5b |"....#..|...b." [|
|00005920| 72 65 2d 73 65 61 72 63 | 68 2d 62 61 63 6b 77 61 |re-searc|h-backwa|
|00005930| 72 64 20 73 68 2d 62 65 | 67 69 6e 6e 69 6e 67 2d |rd sh-be|ginning-|
|00005940| 6f 66 2d 63 6f 6d 6d 61 | 6e 64 20 6e 69 6c 20 74 |of-comma|nd nil t|
|00005950| 20 32 5d 20 34 20 22 5c | 0a 4d 6f 76 65 20 70 6f | 2] 4 "\|.Move po|
|00005960| 69 6e 74 20 74 6f 20 73 | 75 63 63 65 73 73 69 76 |int to s|uccessiv|
|00005970| 65 20 62 65 67 69 6e 6e | 69 6e 67 73 20 6f 66 20 |e beginn|ings of |
|00005980| 63 6f 6d 6d 61 6e 64 73 | 2e 22 20 6e 69 6c 5d 29 |commands|." nil])|
|00005990| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 68 2d 65 |.(defali|as 'sh-e|
|000059a0| 6e 64 2d 6f 66 2d 63 6f | 6d 6d 61 6e 64 20 23 5b |nd-of-co|mmand #[|
|000059b0| 6e 69 6c 20 22 c0 09 c2 | c3 23 85 0b 00 c4 95 62 |nil "...|.#.....b|
|000059c0| 87 22 20 5b 72 65 2d 73 | 65 61 72 63 68 2d 66 6f |." [re-s|earch-fo|
|000059d0| 72 77 61 72 64 20 73 68 | 2d 65 6e 64 2d 6f 66 2d |rward sh|-end-of-|
|000059e0| 63 6f 6d 6d 61 6e 64 20 | 6e 69 6c 20 74 20 31 5d |command |nil t 1]|
|000059f0| 20 34 20 22 5c 0a 4d 6f | 76 65 20 70 6f 69 6e 74 | 4 "\.Mo|ve point|
|00005a00| 20 74 6f 20 73 75 63 63 | 65 73 73 69 76 65 20 65 | to succ|essive e|
|00005a10| 6e 64 73 20 6f 66 20 63 | 6f 6d 6d 61 6e 64 73 2e |nds of c|ommands.|
|00005a20| 22 20 6e 69 6c 5d 29 0a | 28 64 65 66 61 6c 69 61 |" nil]).|(defalia|
|00005a30| 73 20 27 73 68 2d 6d 61 | 6e 75 61 6c 2d 65 6e 74 |s 'sh-ma|nual-ent|
|00005a40| 72 79 20 23 5b 28 61 72 | 67 29 20 22 8a c0 20 88 |ry #[(ar|g) ".. .|
|00005a50| c1 60 c2 20 88 60 7b 21 | 29 1b c4 c5 c6 0e 07 21 |.`. .`{!|)......!|
|00005a60| c8 51 0b 85 1d 00 c9 0b | 21 5c 22 13 ca 0b cb 98 |.Q......|!\".....|
|00005a70| 83 2d 00 c6 0e 07 21 82 | 2e 00 0b 0e 5c 66 5c 22 |.-....!.|....\f\"|
|00005a80| 29 87 22 20 5b 73 68 2d | 62 65 67 69 6e 6e 69 6e |)." [sh-|beginnin|
|00005a90| 67 2d 6f 66 2d 63 6f 6d | 6d 61 6e 64 20 73 68 2d |g-of-com|mand sh-|
|00005aa0| 65 78 65 63 75 74 61 62 | 6c 65 20 66 6f 72 77 61 |executab|le forwa|
|00005ab0| 72 64 2d 73 65 78 70 20 | 63 6f 6d 6d 61 6e 64 20 |rd-sexp |command |
|00005ac0| 72 65 61 64 2d 69 6e 70 | 75 74 20 22 4d 61 6e 75 |read-inp|ut "Manu|
|00005ad0| 61 6c 20 65 6e 74 72 79 | 20 28 64 65 66 61 75 6c |al entry| (defaul|
|00005ae0| 74 20 22 20 73 79 6d 62 | 6f 6c 2d 6e 61 6d 65 20 |t " symb|ol-name |
|00005af0| 73 68 2d 73 68 65 6c 6c | 20 22 29 3a 20 22 20 66 |sh-shell| "): " f|
|00005b00| 69 6c 65 2d 6e 61 6d 65 | 2d 6e 6f 6e 64 69 72 65 |ile-name|-nondire|
|00005b10| 63 74 6f 72 79 20 6d 61 | 6e 75 61 6c 2d 65 6e 74 |ctory ma|nual-ent|
|00005b20| 72 79 20 22 22 20 61 72 | 67 5d 20 34 20 22 5c 0a |ry "" ar|g] 4 "\.|
|00005b30| 44 69 73 70 6c 61 79 20 | 74 68 65 20 55 6e 69 78 |Display |the Unix|
|00005b40| 20 6d 61 6e 75 61 6c 20 | 65 6e 74 72 79 20 66 6f | manual |entry fo|
|00005b50| 72 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 63 6f |r the cu|rrent co|
|00005b60| 6d 6d 61 6e 64 20 6f 72 | 20 73 68 65 6c 6c 2e 0a |mmand or| shell..|
|00005b70| 55 6e 69 76 65 72 73 61 | 6c 20 61 72 67 75 6d 65 |Universa|l argume|
|00005b80| 6e 74 20 41 52 47 2c 20 | 69 73 20 70 61 73 73 65 |nt ARG, |is passe|
|00005b90| 64 20 74 6f 20 60 4d 61 | 6e 2d 67 65 74 70 61 67 |d to `Ma|n-getpag|
|00005ba0| 65 2d 69 6e 2d 62 61 63 | 6b 67 72 6f 75 6e 64 27 |e-in-bac|kground'|
|00005bb0| 2e 22 20 22 50 22 5d 29 | 0a |." "P"])|. |
+--------+-------------------------+-------------------------+--------+--------+